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

Correction XPath pour les tableaux

parent 08eae408
No related merge requests found
......@@ -39,11 +39,11 @@ abstract class BatchControllerTestCase extends AbstractControllerTestCase {
Class_AdminVar::newInstanceWithId('ARTE_VOD_KEY', ['valeur' => '']);
$this->_batch_import = Class_Batch::newInstanceWithId(3, ['type' => 'IMPORT_TYPO3',
'last_run' => '2012-05-01 10:23:00']);
'last_run' => '2012-05-01 10:23:00']);
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Batch')
->whenCalled('findAllBy')
->with(['order' => 'type'])->answers([$this->_batch_import])
->with(['order' => 'type'])->answers([$this->_batch_import])
->whenCalled('findAll') ->answers([$this->_batch_import])
->whenCalled('save') ->answers(true)
->whenCalled('delete') ->answers(true);
......@@ -63,7 +63,8 @@ class BatchControllerWithBatchInDb extends BatchControllerTestCase {
/** @test */
public function tableShouldContainsMoissonnageArteVod() {
$this->assertXPathContentContains('//tr[1]//td', Class_Batch::getBatchLibelle('IMPORT_TYPO3'));
$this->assertXPathContentContains('//tbody//tr[1]//td',
Class_Batch::getBatchLibelle('IMPORT_TYPO3'));
}
......
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