Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tests (un)extending views

  • Loading branch information...
commit 0caf90fffad7ef866eb6a8e7d0ce65696fedb482 1 parent 9c14ed7
@ewinslow ewinslow authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 engine/tests/phpunit/ElggViewServiceTest.php
View
16 engine/tests/phpunit/ElggViewServiceTest.php
@@ -0,0 +1,16 @@
+<?php
+
+class ElggViewServiceTest extends PHPUnit_Framework_TestCase {
+
+ public function testCanExtendViews() {
+ $views = new ElggViewService();
+
+ $views->extendView('foo', 'bar');
+
+ // Unextending valid extension succeeds.
+ $this->assertTrue($views->unextendView('foo', 'bar'));
+
+ // Unextending non-existent extension "fails."
+ $this->assertFalse($views->unextendView('foo', 'bar'));
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.