commit a12afb9b7d2603b5fba99fa7c130270412bfa50c Author: Joel Pittet Date: Fri Aug 1 18:44:18 2014 -0700 removed testing stuff that wasn't supposed to be there diff --git a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php index c806982..f698e82 100644 --- a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php +++ b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php @@ -19,19 +19,6 @@ class AttributeTest extends UnitTestCase { /** - * The mock container. - * - * @var \Symfony\Component\DependencyInjection\ContainerBuilder|\PHPUnit_Framework_MockObject_MockObject - */ - protected $container; - - public function setUp() { - $this->container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder') - ->setMethods(array('get')) - ->getMock(); - } - - /** * Tests the constructor of the attribute class. */ public function testConstructor() { @@ -211,29 +198,6 @@ public function testIterate() { } /** - * Sets up a mock expectation for the container get() method. - * - * @param string $service_name - * The service name to expect for the get() method. - * @param mixed $return - * The value to return from the mocked container get() method. - */ - protected function setMockContainerService($service_name, $return = NULL) { - $expects = $this->container->expects($this->once()) - ->method('get') - ->with($service_name); - - if (isset($return)) { - $expects->will($this->returnValue($return)); - } - else { - $expects->will($this->returnValue(TRUE)); - } - - \Drupal::setContainer($this->container); - } - - /** * Tests printing of an attribute. */ public function testPrint() {