Update Composer, update everything

This commit is contained in:
Oliver Davies 2018-11-23 12:29:20 +00:00
parent ea3e94409f
commit dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions

View file

@ -0,0 +1,40 @@
<?php
namespace Drupal\FunctionalTests\Theme;
use Drupal\Tests\BrowserTestBase;
/**
* Tests the Bartik theme.
*
* @group bartik
*/
class BartikTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->assertTrue($this->container->get('theme_installer')->install(['bartik']));
$this->container->get('config.factory')
->getEditable('system.theme')
->set('default', 'bartik')
->save();
}
/**
* Tests that the Bartik theme always adds its message CSS and Classy's.
*
* @see bartik.libraries.yml
* @see classy.info.yml
*/
public function testRegressionMissingMessagesCss() {
$this->drupalGet('');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->responseContains('bartik/css/components/messages.css');
$this->assertSession()->responseContains('classy/css/components/messages.css');
}
}

View file

@ -0,0 +1,38 @@
<?php
namespace Drupal\FunctionalTests\Theme;
use Drupal\Tests\BrowserTestBase;
/**
* Tests the classy theme.
*
* @group classy
*/
class ClassyTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->assertTrue($this->container->get('theme_installer')->install(['classy']));
$this->container->get('config.factory')
->getEditable('system.theme')
->set('default', 'classy')
->save();
}
/**
* Tests that the Classy theme always adds its message CSS.
*
* @see classy.info.yml
*/
public function testRegressionMissingMessagesCss() {
$this->drupalGet('');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->responseContains('classy/css/components/messages.css');
}
}