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,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\breakpoint\Breakpoint.
*/
namespace Drupal\breakpoint;
use Drupal\Core\Plugin\PluginBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\breakpoint\BreakpointInterface.
*/
namespace Drupal\breakpoint;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\breakpoint\BreakpointManager.
*/
namespace Drupal\breakpoint;
use Drupal\Core\Cache\Cache;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\breakpoint\BreakpointManagerInterface.
*/
namespace Drupal\breakpoint;
/**

View file

@ -1,12 +1,8 @@
<?php
/**
* @file
* Contains \Drupal\breakpoint\Tests\BreakpointDiscoveryTest.
*/
namespace Drupal\breakpoint\Tests;
namespace Drupal\Tests\breakpoint\Kernel;
use Drupal\simpletest\KernelTestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests discovery of breakpoints provided by themes and modules.
@ -24,7 +20,6 @@ class BreakpointDiscoveryTest extends KernelTestBase {
protected function setUp() {
parent::setUp();
$this->installSchema('system', array('router'));
\Drupal::service('theme_handler')->install(array('breakpoint_theme_test'));
}
@ -96,7 +91,7 @@ class BreakpointDiscoveryTest extends KernelTestBase {
/**
* Test the custom breakpoint group provided by a theme and a module.
*/
public function testCustomBreakpointGroups () {
public function testCustomBreakpointGroups() {
// Verify the breakpoint group for breakpoint_theme_test.group2 was created.
$expected_breakpoints = array(
'breakpoint_theme_test.group2.narrow' => array(

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());
}
/**