Пример #1
0
 /**
  * @param bool $logQuery
  * @param bool $logFlag
  * @param int $expectedCalls
  *
  * @dataProvider printLogQueryLoggingDataProvider
  */
 public function testPrintLogQueryLogging($logQuery, $logFlag, $expectedCalls)
 {
     $this->collection->setFlag('log_query', $logFlag);
     $this->loggerMock->expects($this->exactly($expectedCalls))->method('info');
     $this->collection->printLogQuery(false, $logQuery, 'some_query');
 }