ImboUnitTest\Storage\DoctrineTest::testStoreExceptionOnInsertFailure PHP Метод

testStoreExceptionOnInsertFailure() публичный Метод

    public function testStoreExceptionOnInsertFailure()
    {
        $this->connection->expects($this->once())->method('insert')->will($this->returnValue(0));
        $driverMock = $this->getMockBuilder('Imbo\\Storage\\Doctrine')->setConstructorArgs(array([], $this->connection))->setMethods(array('imageExists'))->getMock();
        $driverMock->expects($this->once())->method('imageExists')->will($this->returnValue(false));
        $driverMock->store($this->user, 'image_identifier_not_used', 'image_data_not_used');
    }