Skip to content

Commit

Permalink
Improved test
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Feb 24, 2022
1 parent b36ce02 commit f9a5b3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Controller/CatalogControllerTest.php
Expand Up @@ -75,9 +75,11 @@ public function testSuggestAction()

public function testTreeAction()
{
$root = \Aimeos\Controller\Frontend::create( app( 'aimeos.context' )->get(), 'catalog' )->getTree( \Aimeos\Controller\Frontend\Catalog\Iface::TREE );

View::addLocation( dirname( __DIR__ ) . '/fixtures/views' );

$response = $this->action( 'GET', '\Aimeos\Shop\Controller\CatalogController@treeAction', ['site' => 'unittest', 'f_catid' => 1, 'f_name' => 'test'] );
$response = $this->action( 'GET', '\Aimeos\Shop\Controller\CatalogController@treeAction', ['site' => 'unittest', 'f_catid' => $root->getId(), 'f_name' => 'test'] );

$this->assertResponseOk();
$this->assertStringContainsString( '<section class="aimeos catalog-filter', $response->getContent() );
Expand Down

0 comments on commit f9a5b3e

Please sign in to comment.