Refactor code for improved readability and consistency
- Removed unnecessary blank lines in various files to enhance code clarity. - Updated comments for consistency and clarity across multiple classes and methods. - Adjusted spacing in test files for better formatting and readability.
This commit is contained in:
@@ -32,24 +32,24 @@ test('can list provinces', function () {
|
||||
'id',
|
||||
'name',
|
||||
'region',
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
|
||||
$this->assertCount(2, $response->json('data'));
|
||||
});
|
||||
|
||||
test('can list post branches', function () {
|
||||
// Arrange
|
||||
$province = Province::create(['name' => ['en' => 'Province 1'], 'region' => Region::AG]);
|
||||
|
||||
|
||||
PostBranch::create([
|
||||
'province_id' => $province->id,
|
||||
'name' => ['en' => 'Branch 1'],
|
||||
'address' => ['en' => 'Address 1'],
|
||||
'description' => ['en' => 'Desc 1'],
|
||||
]);
|
||||
|
||||
|
||||
PostBranch::create([
|
||||
'province_id' => $province->id,
|
||||
'name' => ['en' => 'Branch 2'],
|
||||
@@ -73,9 +73,9 @@ test('can list post branches', function () {
|
||||
'name',
|
||||
'address',
|
||||
'description',
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
|
||||
$this->assertCount(2, $response->json('data'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user