Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
66
core/modules/language/src/Tests/LanguageTourTest.php
Normal file
66
core/modules/language/src/Tests/LanguageTourTest.php
Normal file
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\language\Tests\LanguageTourTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\language\Tests;
|
||||
|
||||
use Drupal\tour\Tests\TourTestBase;
|
||||
|
||||
/**
|
||||
* Tests tour functionality.
|
||||
*
|
||||
* @group tour
|
||||
*/
|
||||
class LanguageTourTest extends TourTestBase {
|
||||
|
||||
/**
|
||||
* An admin user with administrative permissions for views.
|
||||
*
|
||||
* @var \Drupal\user\UserInterface
|
||||
*/
|
||||
protected $adminUser;
|
||||
|
||||
/**
|
||||
* Modules to enable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = array('language', 'tour');
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->adminUser = $this->drupalCreateUser(array('administer languages', 'access tour'));
|
||||
$this->drupalLogin($this->adminUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests language tour tip availability.
|
||||
*/
|
||||
public function testLanguageTour() {
|
||||
$this->drupalGet('admin/config/regional/language');
|
||||
$this->assertTourTips();
|
||||
}
|
||||
|
||||
/**
|
||||
* Go to add language page and check the tour tooltips.
|
||||
*/
|
||||
public function testLanguageAddTour() {
|
||||
$this->drupalGet('admin/config/regional/language/add');
|
||||
$this->assertTourTips();
|
||||
}
|
||||
|
||||
/**
|
||||
* Go to edit language page and check the tour tooltips.
|
||||
*/
|
||||
public function testLanguageEditTour() {
|
||||
$this->drupalGet('admin/config/regional/language/edit/en');
|
||||
$this->assertTourTips();
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue