| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 3 | class ResolveControllerTest extends AimeosTestAbstract |
||
| 4 | { |
||
| 5 | public function testCategory() |
||
| 13 | } |
||
| 14 | |||
| 15 | |||
| 16 | public function testProduct() |
||
| 17 | { |
||
| 18 | View::addLocation( dirname( __DIR__ ) . '/fixtures/views' ); |
||
| 19 | |||
| 20 | $response = $this->action( 'GET', '\Aimeos\Shop\Controller\ResolveController@indexAction', ['site' => 'unittest', 'path' => 'Cafe_Noire_Cappuccino'] ); |
||
| 21 | |||
| 22 | $this->assertResponseOk(); |
||
| 23 | $this->assertStringContainsString( '<div class="aimeos catalog-detail', $response->getContent() ); |
||
| 24 | } |
||
| 25 | |||
| 26 | |||
| 27 | public function testNotFound() |
||
| 28 | { |
||
| 29 | $response = $this->action( 'GET', '\Aimeos\Shop\Controller\ResolveController@indexAction', ['site' => 'unittest', 'path' => 'invalid'] ); |
||
| 30 | |||
| 31 | $response->assertStatus( 404 ); |
||
| 32 | } |
||
| 33 | |||
| 34 | |||
| 35 | protected function getEnvironmentSetUp( $app ) |
||
| 40 | } |
||
| 41 | } |