X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fquickedit%2Fsrc%2FTests%2FQuickEditLoadingTest.php;fp=web%2Fcore%2Fmodules%2Fquickedit%2Fsrc%2FTests%2FQuickEditLoadingTest.php;h=61af1f52b632dd3f59b9c21ecc5026a5c4fe638a;hp=6945610db1f69f7595c161e9f59c08d19422710f;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php b/web/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php index 6945610db..61af1f52b 100644 --- a/web/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php +++ b/web/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php @@ -3,7 +3,6 @@ namespace Drupal\quickedit\Tests; use Drupal\Component\Serialization\Json; -use Drupal\Component\Utility\Unicode; use Drupal\block_content\Entity\BlockContent; use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldStorageConfig; @@ -87,7 +86,7 @@ class QuickEditLoadingTest extends WebTestBase { 0 => [ 'value' => '

How are you?

', 'format' => 'filtered_html', - ] + ], ], 'revision_log' => $this->randomString(), ]); @@ -188,7 +187,7 @@ class QuickEditLoadingTest extends WebTestBase { 'label' => 'Body', 'access' => TRUE, 'editor' => 'form', - ] + ], ]; $this->assertIdentical(Json::decode($response), $expected, 'The metadata HTTP request answers with the correct JSON response.'); // Restore drupalSettings to build the next requests; simpletest wipes them @@ -216,7 +215,7 @@ class QuickEditLoadingTest extends WebTestBase { $ajax_commands = Json::decode($response); $this->assertIdentical(1, count($ajax_commands), 'The field form HTTP request results in one AJAX command.'); $this->assertIdentical('quickeditFieldForm', $ajax_commands[0]['command'], 'The first AJAX command is a quickeditFieldForm command.'); - $this->assertIdentical('
assertIdentical('assertIdentical(1, count($ajax_commands), 'The field form HTTP request results in one AJAX command.'); $this->assertIdentical('quickeditFieldForm', $ajax_commands[0]['command'], 'The first AJAX command is a quickeditFieldForm command.'); - $this->assertIdentical('assertIdentical(' 'Title', 'access' => TRUE, 'editor' => 'plain_text', - ] + ], ]; $this->assertIdentical(Json::decode($response), $expected, 'The metadata HTTP request answers with the correct JSON response.'); // Restore drupalSettings to build the next requests; simpletest wipes them @@ -389,7 +388,7 @@ class QuickEditLoadingTest extends WebTestBase { $ajax_commands = Json::decode($response); $this->assertIdentical(1, count($ajax_commands), 'The field form HTTP request results in one AJAX command.'); $this->assertIdentical('quickeditFieldForm', $ajax_commands[0]['command'], 'The first AJAX command is a quickeditFieldForm command.'); - $this->assertIdentical('assertIdentical('drupalPost('quickedit/form/node/1/field_image/en/full', '', ['nocssjs' => 'true'] + $this->getAjaxPageStatePostData(), ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax']]); $this->assertResponse(200); $ajax_commands = Json::decode($response); - $this->assertIdentical('assertIdentical('