Unverified Commit 97b61dac authored by alexpott's avatar alexpott
Browse files

Issue #3131281 by mondrake, longwave, rahulrasgon, ridhimaabrol24,...

Issue #3131281 by mondrake, longwave, rahulrasgon, ridhimaabrol24, naresh_bavaskar, Spokje, paulocs, jungle, daffie: Replace assertEqual() with assertEquals()
parent dd3d8d64
......@@ -31,20 +31,20 @@ public function testCron() {
->count();
$this->cronRun();
$this->assertEqual(5, $count_query->execute());
$this->assertEquals(5, $count_query->execute());
$this->deleteFeedItems($feed);
$this->assertEqual(0, $count_query->execute());
$this->assertEquals(0, $count_query->execute());
$this->cronRun();
$this->assertEqual(5, $count_query->execute());
$this->assertEquals(5, $count_query->execute());
// Test feed locking when queued for update.
$this->deleteFeedItems($feed);
$feed->setQueuedTime(REQUEST_TIME)->save();
$this->cronRun();
$this->assertEqual(0, $count_query->execute());
$this->assertEquals(0, $count_query->execute());
$feed->setQueuedTime(0)->save();
$this->cronRun();
$this->assertEqual(5, $count_query->execute());
$this->assertEquals(5, $count_query->execute());
}
}
......@@ -208,7 +208,7 @@ public function updateFeedItems(FeedInterface $feed, $expected_count = NULL) {
if ($expected_count !== NULL) {
$feed->item_count = count($feed->items);
$this->assertEqual($expected_count, $feed->item_count, new FormattableMarkup('Total items in feed equal to the total items in database (@val1 != @val2)', ['@val1' => $expected_count, '@val2' => $feed->item_count]));
$this->assertEquals($expected_count, $feed->item_count, new FormattableMarkup('Total items in feed equal to the total items in database (@val1 != @val2)', ['@val1' => $expected_count, '@val2' => $feed->item_count]));
}
}
......
......@@ -41,7 +41,7 @@ public function testDeleteFeed() {
$this->assertText($feed2->label());
$block_storage = $this->container->get('entity_type.manager')->getStorage('block');
$this->assertNull($block_storage->load($block->id()), 'Block for the deleted feed was deleted.');
$this->assertEqual($block2->id(), $block_storage->load($block2->id())->id(), 'Block for not deleted feed still exists.');
$this->assertEquals($block2->id(), $block_storage->load($block2->id())->id(), 'Block for not deleted feed still exists.');
// Check feed source.
$this->drupalGet('aggregator/sources/' . $feed1->id());
......
......@@ -77,8 +77,8 @@ public function testFeedLanguage() {
$feeds[2] = $this->createFeed(NULL, ['langcode[0][value]' => $this->langcodes[2]]);
// Make sure that the language has been assigned.
$this->assertEqual($this->langcodes[1], $feeds[1]->language()->getId());
$this->assertEqual($this->langcodes[2], $feeds[2]->language()->getId());
$this->assertEquals($this->langcodes[1], $feeds[1]->language()->getId());
$this->assertEquals($this->langcodes[2], $feeds[2]->language()->getId());
// Create example nodes to create feed items from and then update the feeds.
$this->createSampleNodes();
......@@ -92,7 +92,7 @@ public function testFeedLanguage() {
// Verify that the feed items were created.
$this->assertNotEmpty($items);
foreach ($items as $item) {
$this->assertEqual($feed->language()->getId(), $item->language()->getId());
$this->assertEquals($feed->language()->getId(), $item->language()->getId());
}
}
}
......
......@@ -69,7 +69,7 @@ public function testAtomSample() {
->condition('link', 'http://example.org/2003/12/13/atom03')
->execute();
$item = Item::load(array_values($item_ids)[0]);
$this->assertEqual('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a', $item->getGuid(), 'Atom entry id element is parsed correctly.');
$this->assertEquals('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a', $item->getGuid(), 'Atom entry id element is parsed correctly.');
// Check for second feed entry.
$this->assertText('We tried to stop them, but we failed.');
......@@ -80,7 +80,7 @@ public function testAtomSample() {
->condition('link', 'http://example.org/2003/12/14/atom03')
->execute();
$item = Item::load(array_values($item_ids)[0]);
$this->assertEqual('urn:uuid:1225c695-cfb8-4ebb-bbbb-80da344efa6a', $item->getGuid(), 'Atom entry id element is parsed correctly.');
$this->assertEquals('urn:uuid:1225c695-cfb8-4ebb-bbbb-80da344efa6a', $item->getGuid(), 'Atom entry id element is parsed correctly.');
}
/**
......@@ -104,7 +104,7 @@ public function testRedirectFeed() {
$feed->refreshItems();
// Make sure that the feed URL was updated correctly.
$this->assertEqual(Url::fromRoute('aggregator_test.feed', [], ['absolute' => TRUE])->toString(), $feed->getUrl());
$this->assertEquals(Url::fromRoute('aggregator_test.feed', [], ['absolute' => TRUE])->toString(), $feed->getUrl());
}
/**
......
......@@ -66,7 +66,7 @@ public function testPostProcess() {
// Reload the feed to get new values.
$feed = Feed::load($feed_id);
// Make sure its refresh rate doubled.
$this->assertEqual(3600, $feed->getRefreshRate());
$this->assertEquals(3600, $feed->getRefreshRate());
}
}
......@@ -78,7 +78,7 @@ public function validateImportFormFields() {
$this->assertText('The URL invalidUrl://empty is not valid.');
$after = $count_query->execute();
$this->assertEqual($before, $after, 'No feeds were added during the three last form submissions.');
$this->assertEquals($before, $after, 'No feeds were added during the three last form submissions.');
}
/**
......@@ -99,7 +99,7 @@ protected function submitImportForm() {
$this->assertText('No new feed has been added.');
$after = $count_query->execute();
$this->assertEqual($before, $after, 'No feeds were added during the two last form submissions.');
$this->assertEquals($before, $after, 'No feeds were added during the two last form submissions.');
foreach (Feed::loadMultiple() as $feed) {
$feed->delete();
......@@ -119,7 +119,7 @@ protected function submitImportForm() {
$this->assertRaw(t('A feed named %title already exists.', ['%title' => $feeds[1]['title[0][value]']]));
$after = $count_query->execute();
$this->assertEqual(2, $after, 'Verifying that two distinct feeds were added.');
$this->assertEquals(2, $after, 'Verifying that two distinct feeds were added.');
$feed_entities = Feed::loadMultiple();
$refresh = TRUE;
......@@ -129,8 +129,8 @@ protected function submitImportForm() {
$refresh = $refresh && $feed_entity->getRefreshRate() == 900;
}
$this->assertEqual($title[$feeds[0]['url[0][value]']], $feeds[0]['title[0][value]'], 'First feed was added correctly.');
$this->assertEqual($url[$feeds[1]['title[0][value]']], $feeds[1]['url[0][value]'], 'Second feed was added correctly.');
$this->assertEquals($title[$feeds[0]['url[0][value]']], $feeds[0]['title[0][value]'], 'First feed was added correctly.');
$this->assertEquals($url[$feeds[1]['title[0][value]']], $feeds[1]['url[0][value]'], 'Second feed was added correctly.');
$this->assertTrue($refresh, 'Refresh times are correct.');
}
......
......@@ -54,10 +54,10 @@ public function testValidation() {
$violations = $feed->validate();
$this->assertCount(2, $violations);
$this->assertEqual('title', $violations[0]->getPropertyPath());
$this->assertEqual(t('A feed named %value already exists. Enter a unique title.', ['%value' => $feed->label()]), $violations[0]->getMessage());
$this->assertEqual('url', $violations[1]->getPropertyPath());
$this->assertEqual(t('A feed with this URL %value already exists. Enter a unique URL.', ['%value' => $feed->getUrl()]), $violations[1]->getMessage());
$this->assertEquals('title', $violations[0]->getPropertyPath());
$this->assertEquals(t('A feed named %value already exists. Enter a unique title.', ['%value' => $feed->label()]), $violations[0]->getMessage());
$this->assertEquals('url', $violations[1]->getPropertyPath());
$this->assertEquals(t('A feed with this URL %value already exists. Enter a unique URL.', ['%value' => $feed->getUrl()]), $violations[1]->getMessage());
}
}
......@@ -46,7 +46,7 @@ public function testAggregatorItem() {
$this->assertSame($original->title, $item->label());
// If $original->author is an empty string, getAuthor() returns NULL so
// we need to use assertEqual() here.
$this->assertEqual($original->author, $item->getAuthor());
$this->assertEquals($original->author, $item->getAuthor());
$this->assertSame($original->description, $item->getDescription());
$this->assertSame($original->link, $item->getLink());
$this->assertSame($original->timestamp, $item->getPostedTime());
......
......@@ -123,19 +123,19 @@ public function testAggregatorItemView() {
$output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view, $row) {
return $view->field['title']->advancedRender($row);
});
$this->assertEqual($expected_link->getGeneratedLink(), $output, 'Ensure the right link is generated');
$this->assertEquals($expected_link->getGeneratedLink(), $output, 'Ensure the right link is generated');
$expected_author = Xss::filter($items[$iid]->getAuthor(), _aggregator_allowed_tags());
$output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view, $row) {
return $view->field['author']->advancedRender($row);
});
$this->assertEqual($expected_author, $output, 'Ensure the author got filtered');
$this->assertEquals($expected_author, $output, 'Ensure the author got filtered');
$expected_description = Xss::filter($items[$iid]->getDescription(), _aggregator_allowed_tags());
$output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view, $row) {
return $view->field['description']->advancedRender($row);
});
$this->assertEqual($expected_description, $output, 'Ensure the author got filtered');
$this->assertEquals($expected_description, $output, 'Ensure the author got filtered');
}
}
......
......@@ -191,14 +191,14 @@ public function testBigPipe() {
$this->assertContains('big_pipe/big_pipe', explode(',', $this->getDrupalSettings()['ajaxPageState']['libraries']), 'BigPipe asset library is present.');
// Verify that the two expected exceptions are logged as errors.
$this->assertEqual($log_count + 2, (int) $connection->select('watchdog')->countQuery()->execute()->fetchField(), 'Two new watchdog entries.');
$this->assertEquals($log_count + 2, (int) $connection->select('watchdog')->countQuery()->execute()->fetchField(), 'Two new watchdog entries.');
// Using dynamic select queries with the method range() allows contrib
// database drivers the ability to insert their own limit and offset
// functionality.
$records = $connection->select('watchdog', 'w')->fields('w')->orderBy('wid', 'DESC')->range(0, 2)->execute()->fetchAll();
$this->assertEqual(RfcLogLevel::ERROR, $records[0]->severity);
$this->assertEquals(RfcLogLevel::ERROR, $records[0]->severity);
$this->assertStringContainsString('Oh noes!', (string) unserialize($records[0]->variables)['@message']);
$this->assertEqual(RfcLogLevel::ERROR, $records[1]->severity);
$this->assertEquals(RfcLogLevel::ERROR, $records[1]->severity);
$this->assertStringContainsString('You are not allowed to say llamas are not cool!', (string) unserialize($records[1]->variables)['@message']);
// Verify that 4xx responses work fine. (4xx responses are handled by
......@@ -379,13 +379,13 @@ protected function assertBigPipePlaceholders(array $expected_big_pipe_placeholde
$this->assertNoRaw($expected_placeholder_replacement);
continue;
}
$this->assertEqual($expected_ajax_response, trim($result[0]->getText()));
$this->assertEquals($expected_ajax_response, trim($result[0]->getText()));
$this->assertRaw($expected_placeholder_replacement);
$pos = strpos($this->getSession()->getPage()->getContent(), $expected_placeholder_replacement);
$placeholder_replacement_positions[$pos] = $big_pipe_placeholder_id;
}
ksort($placeholder_positions, SORT_NUMERIC);
$this->assertEqual(array_keys($expected_big_pipe_placeholders), array_values($placeholder_positions));
$this->assertEquals(array_keys($expected_big_pipe_placeholders), array_values($placeholder_positions));
$placeholders = array_map(function (NodeElement $element) {
return $element->getAttribute('data-big-pipe-placeholder-id');
}, $this->cssSelect('[data-big-pipe-placeholder-id]'));
......@@ -394,7 +394,7 @@ protected function assertBigPipePlaceholders(array $expected_big_pipe_placeholde
foreach ($expected_big_pipe_placeholder_stream_order as $big_pipe_placeholder_id) {
$expected_big_pipe_placeholders_with_replacements[$big_pipe_placeholder_id] = $expected_big_pipe_placeholders[$big_pipe_placeholder_id];
}
$this->assertEqual($expected_big_pipe_placeholders_with_replacements, array_filter($expected_big_pipe_placeholders));
$this->assertEquals($expected_big_pipe_placeholders_with_replacements, array_filter($expected_big_pipe_placeholders));
$this->assertSetsEqual(array_keys($expected_big_pipe_placeholders_with_replacements), array_values($placeholder_replacement_positions));
$this->assertSame(count($expected_big_pipe_placeholders_with_replacements), preg_match_all('/' . preg_quote('<script type="application/vnd.drupal-ajax" data-big-pipe-replacement-for-placeholder-with-id="', '/') . '/', $this->getSession()->getPage()->getContent()));
......@@ -415,7 +415,7 @@ protected function assertBigPipePlaceholders(array $expected_big_pipe_placeholde
$stop_signal_position => BigPipe::STOP_SIGNAL,
];
ksort($actual_stream_order, SORT_NUMERIC);
$this->assertEqual($expected_stream_order, array_values($actual_stream_order));
$this->assertEquals($expected_stream_order, array_values($actual_stream_order));
}
/**
......@@ -459,7 +459,7 @@ protected function assertSessionCookieExists($expected) {
* Asserts whether a cookie exists on the client or not.
*/
protected function assertCookieExists($cookie_name, $expected, $cookie_label) {
$this->assertEqual($expected, !empty($this->getSession()->getCookie($cookie_name)), $expected ? "$cookie_label cookie exists." : "$cookie_label cookie does not exist.");
$this->assertEquals($expected, !empty($this->getSession()->getCookie($cookie_name)), $expected ? "$cookie_label cookie exists." : "$cookie_label cookie does not exist.");
}
/**
......@@ -479,19 +479,19 @@ protected function assertBigPipeNoJsMetaRefreshRedirect() {
$statuses[1] = $this->getSession()->getStatusCode();
$this->getSession()->getDriver()->getClient()->followRedirects(TRUE);
$this->assertEqual($original_url, $this->getSession()->getCurrentUrl(), 'Redirected back to the original location.');
$this->assertEquals($original_url, $this->getSession()->getCurrentUrl(), 'Redirected back to the original location.');
// First response: redirect.
$this->assertEqual(302, $statuses[0], 'The first response was a 302 (redirect).');
$this->assertEquals(302, $statuses[0], 'The first response was a 302 (redirect).');
$this->assertStringStartsWith('big_pipe_nojs=1', $headers[0]['Set-Cookie'][0], 'The first response sets the big_pipe_nojs cookie.');
$this->assertEqual($original_url, $headers[0]['Location'][0], 'The first response redirected back to the original page.');
$this->assertEquals($original_url, $headers[0]['Location'][0], 'The first response redirected back to the original page.');
$this->assertTrue(empty(array_diff(['cookies:big_pipe_nojs', 'session.exists'], explode(' ', $headers[0]['X-Drupal-Cache-Contexts'][0]))), 'The first response varies by the "cookies:big_pipe_nojs" and "session.exists" cache contexts.');
$this->assertFalse(isset($headers[0]['Surrogate-Control']), 'The first response has no "Surrogate-Control" header.');
// Second response: redirect followed.
$this->assertEqual(200, $statuses[1], 'The second response was a 200.');
$this->assertEquals(200, $statuses[1], 'The second response was a 200.');
$this->assertTrue(empty(array_diff(['cookies:big_pipe_nojs', 'session.exists'], explode(' ', $headers[0]['X-Drupal-Cache-Contexts'][0]))), 'The first response varies by the "cookies:big_pipe_nojs" and "session.exists" cache contexts.');
$this->assertEqual('no-store, content="BigPipe/1.0"', $headers[1]['Surrogate-Control'][0], 'The second response has a "Surrogate-Control" header.');
$this->assertEquals('no-store, content="BigPipe/1.0"', $headers[1]['Surrogate-Control'][0], 'The second response has a "Surrogate-Control" header.');
// Check that the <meta> refresh is absent, only one redirect ever happens.
$this->assertNoRaw('<noscript><meta http-equiv="Refresh" content="0; URL=');
......
......@@ -103,7 +103,7 @@ public function testLanguageBlockVisibilityLanguageDelete() {
// Check that we have the language in config after saving the setting.
$visibility = $block->getVisibility();
$this->assertEqual('fr', $visibility['language']['langcodes']['fr'], 'Language is set in the block configuration.');
$this->assertEquals('fr', $visibility['language']['langcodes']['fr'], 'Language is set in the block configuration.');
// Delete the language.
$this->drupalPostForm('admin/config/regional/language/delete/fr', [], 'Delete');
......
......@@ -59,7 +59,7 @@ public function testSystemBrandingSettings() {
->save();
$this->drupalGet('');
$site_slogan_element = $this->xpath($site_slogan_xpath);
$this->assertEqual('alert("Community carpentry");', $site_slogan_element[0]->getText(), 'The site slogan was XSS-filtered.');
$this->assertEquals('alert("Community carpentry");', $site_slogan_element[0]->getText(), 'The site slogan was XSS-filtered.');
// Turn just the logo off.
$this->config('block.block.site-branding')
......
......@@ -162,11 +162,11 @@ public function testAddBlockFromLibraryWithWeight() {
]);
$links = $this->xpath('//a[contains(@href, :href)]', [':href' => $add_url->toString()]);
$this->assertCount(1, $links, 'Found one matching link.');
$this->assertEqual(t('Place block'), $links[0]->getText(), 'Found the expected link text.');
$this->assertEquals(t('Place block'), $links[0]->getText(), 'Found the expected link text.');
list($path, $query_string) = explode('?', $links[0]->getAttribute('href'), 2);
parse_str($query_string, $query_parts);
$this->assertEqual($weight, $query_parts['weight'], 'Found the expected weight query string.');
$this->assertEquals($weight, $query_parts['weight'], 'Found the expected weight query string.');
// Create a random title for the block.
$title = $this->randomMachineName(8);
......@@ -181,7 +181,7 @@ public function testAddBlockFromLibraryWithWeight() {
// Ensure that the block was created with the expected weight.
/** @var \Drupal\block\BlockInterface $block */
$block = Block::load($block_id);
$this->assertEqual($weight, $block->getWeight(), 'Found the block with expected weight.');
$this->assertEquals($weight, $block->getWeight(), 'Found the block with expected weight.');
}
}
......@@ -210,7 +210,7 @@ public function testBlock() {
// Check to see if the block was created by checking its configuration.
$instance = Block::load($block['id']);
$this->assertEqual($block['settings[label]'], $instance->label(), 'Stored block title found.');
$this->assertEquals($block['settings[label]'], $instance->label(), 'Stored block title found.');
// Check whether the block can be moved to all available regions.
foreach ($this->regions as $region) {
......@@ -444,7 +444,7 @@ public function testBlockCacheTags() {
'rendered',
];
sort($expected_cache_tags);
$this->assertEqual($expected_cache_tags, $cache_entry->tags);
$this->assertEquals($expected_cache_tags, $cache_entry->tags);
$expected_cache_tags = [
'block_view',
'config:block.block.powered',
......@@ -550,12 +550,12 @@ public function testBlockUserRoleDelete() {
$block->save();
$this->assertEqual([$role1->id() => $role1->id(), $role2->id() => $role2->id()], $block->getVisibility()['user_role']['roles']);
$this->assertEquals([$role1->id() => $role1->id(), $role2->id() => $role2->id()], $block->getVisibility()['user_role']['roles']);
$role1->delete();
$block = Block::load($block->id());
$this->assertEqual([$role2->id() => $role2->id()], $block->getVisibility()['user_role']['roles']);
$this->assertEquals([$role2->id() => $role2->id()], $block->getVisibility()['user_role']['roles']);
}
}
......@@ -233,7 +233,7 @@ public function testViewsBlockForm() {
$block = $storage->load('views_block__test_view_block_block_1_4');
$config = $block->getPlugin()->getConfiguration();
$this->assertEqual(10, $config['items_per_page'], "'Items per page' is properly saved.");
$this->assertEquals(10, $config['items_per_page'], "'Items per page' is properly saved.");
$edit['settings[override][items_per_page]'] = 5;
$this->drupalPostForm('admin/structure/block/manage/views_block__test_view_block_block_1_4', $edit, 'Save block');
......@@ -241,7 +241,7 @@ public function testViewsBlockForm() {
$block = $storage->load('views_block__test_view_block_block_1_4');
$config = $block->getPlugin()->getConfiguration();
$this->assertEqual(5, $config['items_per_page'], "'Items per page' is properly saved.");
$this->assertEquals(5, $config['items_per_page'], "'Items per page' is properly saved.");
// Tests the override of the label capability.
$edit = ['region' => 'content'];
......@@ -251,7 +251,7 @@ public function testViewsBlockForm() {
$block = $storage->load('views_block__test_view_block_block_1_5');
$config = $block->getPlugin()->getConfiguration();
$this->assertEqual('Custom title', $config['views_label'], "'Label' is properly saved.");
$this->assertEquals('Custom title', $config['views_label'], "'Label' is properly saved.");
}
/**
......
......@@ -85,7 +85,7 @@ public function testBlockConfigSchema() {
$block->save();
$config = $this->config("block.block.$id");
$this->assertEqual($id, $config->get('id'));
$this->assertEquals($id, $config->get('id'));
$this->assertConfigSchema($this->typedConfig, $config->getName(), $config->get());
}
}
......
......@@ -61,7 +61,7 @@ protected function createTests() {
$this->fail('A block without a plugin was created with no exception thrown.');
}
catch (PluginException $e) {
$this->assertEqual('The block \'\' did not specify a plugin.', $e->getMessage(), 'An exception was thrown when a block was created without a plugin.');
$this->assertEquals('The block \'\' did not specify a plugin.', $e->getMessage(), 'An exception was thrown when a block was created without a plugin.');
}
// Create a block with only required values.
......@@ -116,7 +116,7 @@ protected function loadTests() {
// Verify several properties of the block.
$this->assertSame('content', $entity->getRegion());
$this->assertTrue($entity->status());
$this->assertEqual('stark', $entity->getTheme());
$this->assertEquals('stark', $entity->getTheme());
$this->assertNotEmpty($entity->uuid());
}
......@@ -152,7 +152,7 @@ public function testDefaultBlocks() {
$entities = $this->controller->loadMultiple();
$entity = reset($entities);
$this->assertEqual('test_block', $entity->id(), 'The default test block was loaded.');
$this->assertEquals('test_block', $entity->id(), 'The default test block was loaded.');
}
}
......@@ -93,7 +93,7 @@ public function testBasicRendering() {
$expected[] = ' </div>';
$expected[] = '';
$expected_output = implode("\n", $expected);
$this->assertEqual($expected_output, $this->renderer->renderRoot($output));
$this->assertEquals($expected_output, $this->renderer->renderRoot($output));
// Reset the HTML IDs so that the next render is not affected.
Html::resetSeenIds();
......@@ -118,7 +118,7 @@ public function testBasicRendering() {
$expected[] = ' </div>';
$expected[] = '';
$expected_output = implode("\n", $expected);
$this->assertEqual($expected_output, $this->renderer->renderRoot($output));
$this->assertEquals($expected_output, $this->renderer->renderRoot($output));
}
/**
......
......@@ -297,7 +297,7 @@ public function testConfigDependencies() {
$dependencies = \Drupal::service('config.manager')->findConfigEntityDependentsAsEntities('content', [$block->getConfigDependencyName()]);
$block_placement = reset($dependencies);
$this->assertEqual($block_placement_id, $block_placement->id(), "The block placement config entity has a dependency on the block content entity.");
$this->assertEquals($block_placement_id, $block_placement->id(), "The block placement config entity has a dependency on the block content entity.");
}
}
......@@ -76,7 +76,7 @@ public function testRevisions() {
->getStorage('block_content')
->loadRevision($revision_id);
// Verify revision log is the same.
$this->assertEqual($logs[$delta], $loaded->getRevisionLogMessage(), new FormattableMarkup('Correct log message found for revision @revision', ['@revision' => $loaded->getRevisionId()]));
$this->assertEquals($logs[$delta], $loaded->getRevisionLogMessage(), new FormattableMarkup('Correct log message found for revision @revision', ['@revision' => $loaded->getRevisionId()]));
if ($delta > 0) {
$this->assertInstanceOf(UserInterface::class, $loaded->getRevisionUser());
$this->assertIsNumeric($loaded->getRevisionUserId());
......
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