Issue #2864008 by nlisgo: Convert web tests to browser tests for content_moderation module

8.4.x
Nathaniel Catchpole 2017-04-28 13:25:10 -04:00
parent c8b4da1840
commit 9e7f7cd4cb
4 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\content_moderation\Tests;
namespace Drupal\Tests\content_moderation\Functional;
/**
* Tests the moderation form, specifically on nodes.
@ -27,7 +27,7 @@ class ModerationFormTest extends ModerationStateTestBase {
* the default revision is not a published moderation state.
*
* @see \Drupal\content_moderation\EntityOperations
* @see \Drupal\content_moderation\Tests\ModerationStateBlockTest::testCustomBlockModeration
* @see \Drupal\Tests\content_moderation\Functional\ModerationStateBlockTest::testCustomBlockModeration
*/
public function testModerationForm() {
// Create new moderated content in draft.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\content_moderation\Tests;
namespace Drupal\Tests\content_moderation\Functional;
use Drupal\block_content\Entity\BlockContent;
use Drupal\block_content\Entity\BlockContentType;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\content_moderation\Tests;
namespace Drupal\Tests\content_moderation\Functional;
use Drupal\Core\Url;
use Drupal\node\Entity\Node;
@ -132,7 +132,7 @@ class ModerationStateNodeTest extends ModerationStateTestBase {
$this->drupalLogin($this->adminUser);
$this->drupalGet('admin/content');
$element = $this->cssSelect('nav.pager li.is-active a');
$url = (string) $element[0]['href'];
$url = $element[0]->getAttribute('href');
$query = [];
parse_str(parse_url($url, PHP_URL_QUERY), $query);
$this->assertEqual(0, $query['page']);

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\content_moderation\Tests;
namespace Drupal\Tests\content_moderation\Functional;
/**
* Tests moderation state node type integration.