From: Joas Schilling Date: Mon, 20 Apr 2015 10:31:35 +0000 (+0200) Subject: Add tests for correct path X-Git-Tag: v8.1.0alpha2~20^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ddcd79132db5b4251bff10c2dba241460fdc8f68;p=nextcloud-server.git Add tests for correct path --- diff --git a/tests/lib/template/resourcelocator.php b/tests/lib/template/resourcelocator.php index bbcd6876ac8..ef5e2ed1357 100644 --- a/tests/lib/template/resourcelocator.php +++ b/tests/lib/template/resourcelocator.php @@ -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')); }