diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php index 3472c30..2bbb309 100644 --- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php +++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php @@ -127,7 +127,7 @@ public function testTestingThroughUI() { $this->drupalGet('admin/config/development/testing'); $edit = array( // A KernalTestBase test. - 'tests[Drupal\text\Tests\Formatter\TextPlainUnitTest]' => TRUE, + 'tests[Drupal\field\Tests\String\StringFormatterTest]' => TRUE, ); $this->drupalPostForm(NULL, $edit, t('Run tests')); $this->assertText('0 fails, 0 exceptions'); diff --git a/core/modules/text/src/Tests/Formatter/TextFormatterTest.php b/core/modules/text/src/Tests/Formatter/TextFormatterTest.php index ef71160..9bdae67 100644 --- a/core/modules/text/src/Tests/Formatter/TextFormatterTest.php +++ b/core/modules/text/src/Tests/Formatter/TextFormatterTest.php @@ -80,7 +80,7 @@ public function testFormatters() { // Create the entity to be referenced. $entity = entity_create($this->entityType, array('name' => $this->randomMachineName())); - $entity->processed_text = array( + $entity->filtered_text = array( 'value' => 'Hello, world!', 'format' => 'my_text_format', ); @@ -88,12 +88,12 @@ public function testFormatters() { foreach ($formatters as $formatter) { // Verify the text field formatter's render array. - $build = $entity->get('processed_text')->view(array('type' => $formatter)); + $build = $entity->get('filtered_text')->view(array('type' => $formatter)); $this->assertEqual($build[0]['#markup'], "

Hello, world!

\n"); $expected_cache_tags = array( 'filter_format' => array('my_text_format' => 'my_text_format'), ); - $this->assertEqual($build[0]['#cache']['tags'], $expected_cache_tags, format_string('The @formatter formatter has the expected cache tags when formatting a processed text field.', array('@formatter' => $formatter))); + $this->assertEqual($build[0]['#cache']['tags'], $expected_cache_tags, format_string('The @formatter formatter has the expected cache tags when formatting a filtered text field.', array('@formatter' => $formatter))); } }