diff --git a/tests/src/Kernel/Form/StanfordMigrateCsvImportFormTest.php b/tests/src/Kernel/Form/StanfordMigrateCsvImportFormTest.php index 6ed0737..7478257 100644 --- a/tests/src/Kernel/Form/StanfordMigrateCsvImportFormTest.php +++ b/tests/src/Kernel/Form/StanfordMigrateCsvImportFormTest.php @@ -44,33 +44,6 @@ public function setup(): void { $this->installSchema('file', ['file_usage']); } - /** - * Migrations that aren't csv importers are denied access. - */ - public function testNonCsvAccess() { - $this->setMigrationRequest(Migration::load('stanford_migrate')); - - $form_object = \Drupal::entityTypeManager() - ->getFormObject('migration', 'csv-upload'); - $account = $this->createMock(AccountInterface::class); - $this->assertFalse($form_object->access($account)->isAllowed()); - } - - /** - * CSV Importers have permission access. - */ - public function testCsvPermissionAccess() { - $this->setCsvMigrationRequest(); - - $account = $this->createMock(AccountInterface::class); - $form_object = \Drupal::entityTypeManager() - ->getFormObject('migration', 'csv-upload'); - $this->assertFalse($form_object->access($account)->isAllowed()); - - $account->method('hasPermission')->willReturn(TRUE); - $this->assertTrue($form_object->access($account)->isAllowed()); - } - /** * Test the functionality of the form. */