Skip to content
Snippets Groups Projects
Commit e28356b2 authored by llaffont's avatar llaffont
Browse files

Correction tests

parent c6c392fe
No related merge requests found
......@@ -235,11 +235,15 @@ class Class_Catalogue extends Storm_Model_Abstract {
protected $_has_many = ['sous_domaines' => ['model' => 'Class_Catalogue',
'role' => 'domaine_parent',
'dependents' => 'delete',
'order' => 'libelle']];
'order' => 'libelle']];
protected $_from;
protected $_until;
public static function getLoader() {
return self::getLoaderFor(__CLASS__);
}
public static function newCatalogueForAll() {
return new AllNoticesCatalogue();
}
......
......@@ -67,7 +67,7 @@ class CatalogueControllerWithModoPortailIndexTest extends AdminCatalogueControll
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Catalogue')
->whenCalled('findAllBy')
->with(['parent_id' => null])
->with(['where' => 'parent_id is null'])
->answers([$histoire]);
$this->dispatch('admin/catalogue/index');
......@@ -94,7 +94,7 @@ class CatalogueControllerWithModoPortailIndexTest extends AdminCatalogueControll
/** @test */
public function ulLiUlLiShouldContainsPolitique() {
$this->assertXPathContentContains('//ul//li//ul//li', 'Politique');
$this->assertXPathContentContains('//ul//li//ul//li', 'Politique', $this->_response->getBody());
}
......
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