Commit 90e256ec authored by okhin's avatar okhin 🚴

PDF test

parent 98b4615a
......@@ -32,6 +32,7 @@ class CounterpartSeeder extends AbstractSeed
'taille' => 8,
'status' => 1,
'adresse_id' => null,
'pdf' => 'http://example.org/pdf/2',
),
);
......
......@@ -12,6 +12,7 @@ class CounterpartFinderTest extends FunctionalTest
$this->assertCount(1, $counterparts);
$firstCounterpart = reset($counterparts);
$secondCounterpart = $counterparts[1];
// Check the first counterpart
$expectedCounterpart = [
......@@ -27,5 +28,10 @@ class CounterpartFinderTest extends FunctionalTest
'pdf_url' => '',
];
$this->assertEquals($expectedCounterpart, $firstCounterpart);
// Test the PDF attributes
$this->assertEquals(2, $secondCounterpart['pdf_id']);
$this->assertEquals('Bob', $secondCounterpart['pdf_nom']);
$this->assertEquals('http://example.org/pdf/2', $secondCounterpart['pdf_url']);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment