for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class ResolveControllerTest extends AimeosTestAbstract
{
public function testCategory()
View::addLocation( dirname( __DIR__ ) . '/fixtures/views' );
$response = $this->action( 'GET', '\Aimeos\Shop\Controller\ResolveController@indexAction', ['site' => 'unittest', 'path' => 'tee'] );
$this->assertResponseOk();
$this->assertStringContainsString( '<div class="section aimeos catalog-filter', $response->getContent() );
}
public function testProduct()
$response = $this->action( 'GET', '\Aimeos\Shop\Controller\ResolveController@indexAction', ['site' => 'unittest', 'path' => 'Cafe_Noire_Cappuccino'] );
$this->assertStringContainsString( '<div class="aimeos catalog-detail', $response->getContent() );
public function testNotFound()
$response = $this->action( 'GET', '\Aimeos\Shop\Controller\ResolveController@indexAction', ['site' => 'unittest', 'path' => 'invalid'] );
$response->assertStatus( 404 );
protected function getEnvironmentSetUp( $app )
parent::getEnvironmentSetUp( $app );
$app['config']->set( 'shop.client.html.catalog.detail.url.target', 'aimeos_resolve' );