Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes

This commit is contained in:
Pantheon Automation 2016-04-20 09:56:34 -07:00 committed by Greg Anderson
parent b11a755ba8
commit c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions

View file

@ -1,14 +1,10 @@
<?php
/**
* @file
* Contains \Drupal\Tests\breakpoint\Unit\BreakpointTest.
*/
namespace Drupal\Tests\breakpoint\Unit;
use Drupal\breakpoint\Breakpoint;
use Drupal\Tests\UnitTestCase;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* @coversDefaultClass \Drupal\breakpoint\Breakpoint
@ -65,12 +61,8 @@ class BreakpointTest extends UnitTestCase {
*/
public function testGetLabel() {
$this->pluginDefinition['label'] = 'Test label';
$this->stringTranslation->expects($this->once())
->method('translate')
->with($this->pluginDefinition['label'], array(), array('context' => 'breakpoint'))
->will($this->returnValue('Test label translated'));
$this->setupBreakpoint();
$this->assertEquals('Test label translated', $this->breakpoint->getLabel());
$this->assertEquals(new TranslatableMarkup('Test label', array(), array('context' => 'breakpoint'), $this->stringTranslation), $this->breakpoint->getLabel());
}
/**