| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | public function testDetailAction() |
||
| 6 | { |
||
| 7 | View::addLocation( dirname( __DIR__ ) . '/fixtures/views' ); |
||
| 8 | |||
| 9 | $context = app( 'aimeos.context' )->get( true ); |
||
|
|
|||
| 10 | $item = \Aimeos\Controller\Frontend::create( $context, 'supplier' )->slice( 0, 1 )->search()->first(); |
||
| 11 | $params = ['site' => 'unittest', 's_name' => 'Test supplier', 'f_supid' => $item->getId()]; |
||
| 12 | |||
| 13 | $response = $this->action( 'GET', '\Aimeos\Shop\Controller\SupplierController@detailAction', $params ); |
||
| 14 | |||
| 15 | $this->assertResponseOk(); |
||
| 16 | $this->assertStringContainsString( '<div class="section aimeos supplier-detail', $response->getContent() ); |
||
| 17 | $this->assertStringContainsString( '<div class="section aimeos catalog-list', $response->getContent() ); |
||
| 18 | } |
||
| 19 | } |