Commit 9e7f7cd4 authored by catch's avatar catch

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

parent c8b4da18
<?php
namespace Drupal\content_moderation\Tests;
namespace Drupal\Tests\content_moderation\Functional;
/**
* Tests the moderation form, specifically on nodes.
......@@ -27,7 +27,7 @@ protected function setUp() {
* 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.
......
<?php
namespace Drupal\content_moderation\Tests;
namespace Drupal\Tests\content_moderation\Functional;
use Drupal\block_content\Entity\BlockContent;
use Drupal\block_content\Entity\BlockContentType;
......
<?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 @@ public function testPagers() {
$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']);
......
<?php
namespace Drupal\content_moderation\Tests;
namespace Drupal\Tests\content_moderation\Functional;
/**
* Tests moderation state node type integration.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment