Fix Laravel Pint formatting
This commit is contained in:
@@ -18,10 +18,10 @@ class FilesControllerTest extends TestCase
|
||||
Sanctum::actingAs($user);
|
||||
|
||||
$dir = storage_path('uploads/receipts');
|
||||
if (!is_dir($dir)) {
|
||||
if (! is_dir($dir)) {
|
||||
mkdir($dir, 0777, true);
|
||||
}
|
||||
$path = $dir . DIRECTORY_SEPARATOR . 'sample.pdf';
|
||||
$path = $dir.DIRECTORY_SEPARATOR.'sample.pdf';
|
||||
file_put_contents($path, 'PDFDATA');
|
||||
|
||||
$response = $this->getJson('/api/v1/files/receipts/sample.pdf?meta=1');
|
||||
@@ -60,10 +60,10 @@ class FilesControllerTest extends TestCase
|
||||
]);
|
||||
|
||||
$dir = storage_path('uploads/exams/drafts');
|
||||
if (!is_dir($dir)) {
|
||||
if (! is_dir($dir)) {
|
||||
mkdir($dir, 0777, true);
|
||||
}
|
||||
$path = $dir . DIRECTORY_SEPARATOR . 'draft1.pdf';
|
||||
$path = $dir.DIRECTORY_SEPARATOR.'draft1.pdf';
|
||||
file_put_contents($path, 'PDFDATA');
|
||||
|
||||
$response = $this->get('/api/v1/files/exams/teacher/draft1.pdf');
|
||||
|
||||
@@ -37,7 +37,7 @@ class ReportCardsControllerTest extends TestCase
|
||||
$data = $this->seedReportCardData($user->id);
|
||||
|
||||
Sanctum::actingAs($user);
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/completeness?class_section_id=' . $data['class_section_id'] . '&school_year=2025-2026&semester=Fall');
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/completeness?class_section_id='.$data['class_section_id'].'&school_year=2025-2026&semester=Fall');
|
||||
|
||||
$response->assertOk();
|
||||
$response->assertJsonPath('status', true);
|
||||
@@ -53,7 +53,7 @@ class ReportCardsControllerTest extends TestCase
|
||||
$this->seedAcknowledgement($data['student_id']);
|
||||
|
||||
Sanctum::actingAs($user);
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/acknowledgement?student_id=' . $data['student_id'] . '&school_year=2025-2026&semester=Fall');
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/acknowledgement?student_id='.$data['student_id'].'&school_year=2025-2026&semester=Fall');
|
||||
|
||||
$response->assertOk();
|
||||
$response->assertJsonPath('status', true);
|
||||
@@ -67,7 +67,7 @@ class ReportCardsControllerTest extends TestCase
|
||||
$data = $this->seedReportCardData($user->id);
|
||||
|
||||
Sanctum::actingAs($user);
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/students/' . $data['student_id'] . '?school_year=2025-2026&semester=Fall');
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/students/'.$data['student_id'].'?school_year=2025-2026&semester=Fall');
|
||||
|
||||
$response->assertOk();
|
||||
$this->assertSame('application/pdf', $response->headers->get('content-type'));
|
||||
@@ -80,7 +80,7 @@ class ReportCardsControllerTest extends TestCase
|
||||
$data = $this->seedReportCardData($user->id);
|
||||
|
||||
Sanctum::actingAs($user);
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/classes/' . $data['class_section_id'] . '?school_year=2025-2026&semester=Fall');
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/classes/'.$data['class_section_id'].'?school_year=2025-2026&semester=Fall');
|
||||
|
||||
$response->assertOk();
|
||||
$this->assertSame('application/pdf', $response->headers->get('content-type'));
|
||||
@@ -93,7 +93,7 @@ class ReportCardsControllerTest extends TestCase
|
||||
$data = $this->seedStudentOnly();
|
||||
|
||||
Sanctum::actingAs($user);
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/students/' . $data['student_id'] . '?school_year=2025-2026&semester=Fall');
|
||||
$response = $this->getJson('/api/v1/reports/report-cards/students/'.$data['student_id'].'?school_year=2025-2026&semester=Fall');
|
||||
|
||||
$response->assertStatus(422);
|
||||
$response->assertJsonPath('status', false);
|
||||
|
||||
Reference in New Issue
Block a user