Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Expectation failed for method name is equal to <string:insert> when invoked 1 time(s)
- Parameter 0 for invocation OCP\AppFramework\Db\Mapper::insert(OCA\MediaMetadata\Services\ImageDimension Object (...)) does not match expected value.
- OCA\MediaMetadata\Services\ImageDimension Object &000000007b8d937a000000005f3b48ba (
- 'imageId' => 260495
- 'imageHeight' => null
- 'imageWidth' => null
- 'id' => null
- '_updatedFields' => Array &0 (
- 'imageId' => true
- )
- '_fieldTypes' => Array &0
- ) is not instance of expected class "Mock_ImageDimension_8fbc9b7e".--- Expected
- +++ Actual
- @@ @@
- -Mock_ImageDimension_8fbc9b7e Object &000000007b8d9394000000005f3b48ba (
- - '__phpunit_invocationMocker' => PHPUnit_Framework_MockObject_InvocationMocker Object &000000007b8d93b8000000005f3b48ba (
- - 'matchers' => Array &0 (
- - 0 => PHPUnit_Framework_MockObject_Matcher Object &000000007b8d93be000000005f3b48ba (
- - 'invocationMatcher' => PHPUnit_Framework_MockObject_Matcher_InvokedCount Object &000000007b8d93bb000000005f3b48ba (
- - 'expectedCount' => 1
- - 'invocations' => Array &1 ()
- - )
- - 'afterMatchBuilderId' => null
- - 'afterMatchBuilderIsInvoked' => false
- - 'methodNameMatcher' => PHPUnit_Framework_MockObject_Matcher_MethodName Object &000000007b8d93bf000000005f3b48ba (
- - 'constraint' => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d93bc000000005f3b48ba (
- - 'value' => 'setImageId'
- - 'delta' => 0
- - 'maxDepth' => 10
- - 'canonicalize' => false
- - 'ignoreCase' => true
- - 'lastFailure' => null
- - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d93bd000000005f3b48ba ()
- - )
- - )
- - 'parametersMatcher' => PHPUnit_Framework_MockObject_Matcher_Parameters Object &000000007b8d93dd000000005f3b48ba (
- - 'parameters' => Array &2 (
- - 0 => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d93dc000000005f3b48ba (
- - 'value' => 260495
- - 'delta' => 0.0
- - 'maxDepth' => 10
- - 'canonicalize' => false
- - 'ignoreCase' => false
- - 'lastFailure' => null
- - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d93df000000005f3b48ba ()
- - )
- - )
- - 'invocation' => null
- - )
- - 'stub' => null
- - )
- - 1 => PHPUnit_Framework_MockObject_Matcher Object &000000007b8d9382000000005f3b48ba (
- - 'invocationMatcher' => PHPUnit_Framework_MockObject_Matcher_InvokedCount Object &000000007b8d93b9000000005f3b48ba (
- - 'expectedCount' => 1
- - 'invocations' => Array &3 ()
- - )
- - 'afterMatchBuilderId' => null
- - 'afterMatchBuilderIsInvoked' => false
- - 'methodNameMatcher' => PHPUnit_Framework_MockObject_Matcher_MethodName Object &000000007b8d9383000000005f3b48ba (
- - 'constraint' => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d9380000000005f3b48ba (
- - 'value' => 'setImageHeight'
- - 'delta' => 0
- - 'maxDepth' => 10
- - 'canonicalize' => false
- - 'ignoreCase' => true
- - 'lastFailure' => null
- - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d9381000000005f3b48ba ()
- - )
- - )
- - 'parametersMatcher' => PHPUnit_Framework_MockObject_Matcher_Parameters Object &000000007b8d9386000000005f3b48ba (
- - 'parameters' => Array &4 (
- - 0 => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d9387000000005f3b48ba (
- - 'value' => 100
- - 'delta' => 0.0
- - 'maxDepth' => 10
- - 'canonicalize' => false
- - 'ignoreCase' => false
- - 'lastFailure' => null
- - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d9384000000005f3b48ba ()
- - )
- - )
- - 'invocation' => null
- - )
- - 'stub' => null
- - )
- - 2 => PHPUnit_Framework_MockObject_Matcher Object &000000007b8d938a000000005f3b48ba (
- - 'invocationMatcher' => PHPUnit_Framework_MockObject_Matcher_InvokedCount Object &000000007b8d939d000000005f3b48ba (
- - 'expectedCount' => 1
- - 'invocations' => Array &5 ()
- - )
- - 'afterMatchBuilderId' => null
- - 'afterMatchBuilderIsInvoked' => false
- - 'methodNameMatcher' => PHPUnit_Framework_MockObject_Matcher_MethodName Object &000000007b8d938b000000005f3b48ba (
- - 'constraint' => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d9388000000005f3b48ba (
- - 'value' => 'setImageWidth'
- - 'delta' => 0
- - 'maxDepth' => 10
- - 'canonicalize' => false
- - 'ignoreCase' => true
- - 'lastFailure' => null
- - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d9389000000005f3b48ba ()
- - )
- - )
- - 'parametersMatcher' => PHPUnit_Framework_MockObject_Matcher_Parameters Object &000000007b8d938e000000005f3b48ba (
- - 'parameters' => Array &6 (
- - 0 => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d938f000000005f3b48ba (
- - 'value' => 100
- - 'delta' => 0.0
- - 'maxDepth' => 10
- - 'canonicalize' => false
- - 'ignoreCase' => false
- - 'lastFailure' => null
- - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d938c000000005f3b48ba ()
- - )
- - )
- - 'invocation' => null
- - )
- - 'stub' => null
- - )
- - )
- - 'builderMap' => Array &0
- - )
- - '__phpunit_originalObject' => null
- - 'imageId' => null
- +OCA\MediaMetadata\Services\ImageDimension Object &000000007b8d937a000000005f3b48ba (
- + 'imageId' => 260495
- 'imageHeight' => null
- 'imageWidth' => null
- 'id' => null
- - '_updatedFields' => Array &7 ()
- - '_fieldTypes' => Array &7
- + '_updatedFields' => Array &0 (
- + 'imageId' => true
- + )
- + '_fieldTypes' => Array &0
- )
- #1 /var/www/GSoC/apps/mediametadata/lib/Hooks/ImageHooks.php:68
- #2 /var/www/GSoC/apps/mediametadata/tests/unit/Hooks/ImageHooksTest.php:120
- #3 OCA\MediaMetadata\Hooks\ImageHooksTest->testPostCreate
- FAILURES!
- Tests: 1, Assertions: 1, Failures: 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement