diff --git a/tests/library/Class/ListesNoticesTest.php b/tests/library/Class/ListesNoticesTest.php index 593dcb7f3f32e10bb3c41c14686b7dc746caeda0..15f053061e67b5247ab23114c8beae16348f4964 100644 --- a/tests/library/Class/ListesNoticesTest.php +++ b/tests/library/Class/ListesNoticesTest.php @@ -31,21 +31,21 @@ class ListesNoticesTest extends Storm_Test_ModelTestCase { $this->_mock_sql = $this->mock() ->whenCalled('fetchAllByColumn') ->with('select * from notices') - ->answers([4, 10, 23]) + ->answers(range(1, 50)) ->beStrict(); Zend_Registry::set('sql', $this->_mock_sql); Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Notice') ->whenCalled('findAllBy') - ->with(['id_notice' => [4, 10, 23], - 'order' => 'FIELD(id_notice, 4,10,23)']) + ->with(['id_notice' => range(1, 10), + 'order' => 'FIELD(id_notice, 1,2,3,4,5,6,7,8,9,10)']) ->answers('notices'); } public function tearDown() { - Zend_Registry::set('sql', $this->_original_sql); + Zend_Registry::set('sql',$this->_original_sql); parent::tearDown(); }