ControllerTest.php in Render cache 7.2
File
tests/src/RenderCache/Controller/ControllerTest.php
View source
<?php
namespace Drupal\render_cache\RenderCache\Controller;
class ControllerTest extends \PHPUnit_Framework_TestCase {
public function testControllerInterface() {
$mockController = $this
->getMockBuilder('\\Drupal\\render_cache\\RenderCache\\Controller\\ControllerInterface')
->disableOriginalConstructor()
->getMock();
$mockController
->expects($this
->any())
->method('view')
->will($this
->returnValue('foo'));
$objects = array();
$this
->assertEquals('foo', $mockController
->view($objects));
}
}