]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add tests for correct path
authorJoas Schilling <nickvergessen@owncloud.com>
Mon, 20 Apr 2015 10:31:35 +0000 (12:31 +0200)
committerJoas Schilling <nickvergessen@owncloud.com>
Mon, 20 Apr 2015 10:31:35 +0000 (12:31 +0200)
tests/lib/template/resourcelocator.php

index bbcd6876ac8612697dc4a4c291bdfc0692ae04b2..ef5e2ed13575b861486f11803f5094e6785d78a6 100644 (file)
@@ -68,7 +68,8 @@ class ResourceLocator extends \Test\TestCase {
                        ->with('foo')
                        ->will($this->throwException(new ResourceNotFoundException('foo', 'map')));
                $this->logger->expects($this->exactly(2))
-                       ->method('error');
+                       ->method('error')
+                       ->with($this->stringContains('map/foo'));
                /** @var \OC\Template\ResourceLocator $locator */
                $locator->find(array('foo'));
        }