Skip to content
Snippets Groups Projects

Issue #3228371: Fix Rector

9 files
+ 30
30
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -103,15 +103,15 @@ class AuthenticationAnonymousTest extends AuthenticationTestBase {
@@ -103,15 +103,15 @@ class AuthenticationAnonymousTest extends AuthenticationTestBase {
$entity_storage = $this->entityTypeManager->getStorage('node');
$entity_storage = $this->entityTypeManager->getStorage('node');
$published = $entity_storage->loadByProperties(['uuid' => 'es_test_node_import_published']);
$published = $entity_storage->loadByProperties(['uuid' => 'es_test_node_import_published']);
$this->assertEqual(count($published), 1, 'The published node was imported.');
$this->assertEquals(count($published), 1, 'The published node was imported.');
$not_published = $entity_storage->loadByProperties(['uuid' => 'es_test_node_import_not_published']);
$not_published = $entity_storage->loadByProperties(['uuid' => 'es_test_node_import_not_published']);
$this->assertEqual(count($not_published), 0, 'The unpublished node was not imported.');
$this->assertEquals(count($not_published), 0, 'The unpublished node was not imported.');
foreach (static::$filesData as $file_data) {
foreach (static::$filesData as $file_data) {
$this->assertTrue(file_exists($file_data['uri']), 'The private physical file ' . $file_data['filename'] . ' has been pulled and recreated.');
$this->assertTrue(file_exists($file_data['uri']), 'The private physical file ' . $file_data['filename'] . ' has been pulled and recreated.');
$file_content = file_get_contents($file_data['uri']);
$file_content = file_get_contents($file_data['uri']);
$this->assertEqual($file_content, $file_data['file_content'], 'Private physical file was downloaded with correct content.');
$this->assertEquals($file_content, $file_data['file_content'], 'Private physical file was downloaded with correct content.');
}
}
}
}
Loading