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

Suppression warnings logs cosmogramme

parent 5a098e88
Branches
Tags
No related merge requests found
...@@ -38,13 +38,14 @@ class transaction_opac ...@@ -38,13 +38,14 @@ class transaction_opac
$sep=$this->sep; $sep=$this->sep;
global $sql; global $sql;
$transacs=$sql->fetchAll("select * from transactions"); $data = [];
foreach($transacs as $ligne) if ($transacs=$sql->fetchAll("select * from transactions")) {
{ foreach($transacs as $ligne) {
$bloc=$ligne["TYPE_MVT"].$sep; $bloc=$ligne["TYPE_MVT"].$sep;
$bloc.=$ligne["ID_MVT"].$sep; $bloc.=$ligne["ID_MVT"].$sep;
$bloc.=$ligne["DATA"]; $bloc.=$ligne["DATA"];
$data[]=$bloc; $data[]=$bloc;
}
} }
$this->envoiReponse("ok",$data); $this->envoiReponse("ok",$data);
} }
......
...@@ -33,12 +33,7 @@ abstract class NoticeIntegrationAbstract extends ModelTestCase { ...@@ -33,12 +33,7 @@ abstract class NoticeIntegrationAbstract extends ModelTestCase {
parent::setUp(); parent::setUp();
global $sql; global $sql;
$sql = $this->_mock_sql = Storm_Test_ObjectWrapper::mock(); $this->getMock('NullSql',['fetchOne', $sql = $this->_mock_sql = Storm_Test_ObjectWrapper::mock();
'execute',
'fetchAll',
'insert',
'update',
'fetchEnreg']);
$this->_mock_sql $this->_mock_sql
->whenCalled('execute')->answers(true) ->whenCalled('execute')->answers(true)
......
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