|
|
@@ -19,16 +19,16 @@ public function test_contract_pdf_view_does_not_contain_old_phone_fields(): void
|
|
|
$contract->id = 1;
|
|
|
$contract->signature_date = '2023-01-01';
|
|
|
$contract->end_date = '2023-12-31';
|
|
|
-
|
|
|
+
|
|
|
$student = new Student();
|
|
|
$student->name = 'Test Student';
|
|
|
$student->phone = '11999999999';
|
|
|
-
|
|
|
+
|
|
|
$unit = new Unit();
|
|
|
$unit->fantasy_name = 'Test Unit';
|
|
|
$unit->city = clone (object)['name' => 'Test City'];
|
|
|
$unit->state = clone (object)['code' => 'SP'];
|
|
|
-
|
|
|
+
|
|
|
$packageUnit = new ClassPackageUnit();
|
|
|
$package = new ClassPackage();
|
|
|
$package->name = 'Test Package';
|
|
|
@@ -37,7 +37,7 @@ public function test_contract_pdf_view_does_not_contain_old_phone_fields(): void
|
|
|
$contract->setRelation('student', $student);
|
|
|
$contract->setRelation('unit', $unit);
|
|
|
$contract->setRelation('classPackageUnit', $packageUnit);
|
|
|
-
|
|
|
+
|
|
|
$contract->setAttribute('installments', 1); // Attribute, not relation
|
|
|
|
|
|
$html = View::make('student-contracts.contract', ['contract' => $contract])->render();
|