Skip to content
Snippets Groups Projects
Commit d33c3357 authored by Alex Arnaud's avatar Alex Arnaud
Browse files

hotline #27726 - Make tests use volatile strategy

parent bacadc63
Branches
Tags
1 merge request!1024Hotline#27726 dont index not visible articles
...@@ -1075,18 +1075,22 @@ class EventsByMonthWithArticleNextYearTest extends EventsByMonthWithArticleTestC ...@@ -1075,18 +1075,22 @@ class EventsByMonthWithArticleNextYearTest extends EventsByMonthWithArticleTestC
class ArticleIndexAllTest extends Storm_Test_ModelTestCase { class ArticleIndexAllTest extends ModelTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() { public function setUp() {
parent::setUp(); parent::setUp();
Class_Exemplaire::beVolatile();
Class_Notice::beVolatile();
Class_NoticeDomain::beVolatile();
$user = $this->fixture('Class_Users', $user = $this->fixture('Class_Users',
['id' => 1, ['id' => 1,
'login' => 'Tom', 'login' => 'Tom',
'password' => 'pwd']); 'password' => 'pwd']);
$this->fixture('Class_AdminVar',
['clef' => 'WORKFLOW',
'id' => 'WORKFLOW',
'valeur' => 1]);
$this->fixture('Class_Catalogue', $this->fixture('Class_Catalogue',
['id' => 1, ['id' => 1,
'libelle' => 'My domain']); 'libelle' => 'My domain']);
...@@ -1133,7 +1137,7 @@ class ArticleIndexAllTest extends Storm_Test_ModelTestCase { ...@@ -1133,7 +1137,7 @@ class ArticleIndexAllTest extends Storm_Test_ModelTestCase {
/** @test */ /** @test */
public function twoRecordsShouildBePresent() { public function twoRecordsShouldBePresent() {
$this->assertCount(2, Class_Notice::findAll()); $this->assertCount(2, Class_Notice::findAll());
} }
......
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