From 4990aec0c7250ffb170bec9efcc12f29be1d1eda Mon Sep 17 00:00:00 2001 From: Nevermind23 Date: Thu, 5 Dec 2024 18:05:06 +0400 Subject: [PATCH] chore: Remove test case --- .../resources/Service/ClassDeleterTest.php | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/test/unit/models/classes/resources/Service/ClassDeleterTest.php b/test/unit/models/classes/resources/Service/ClassDeleterTest.php index 807c1f1113..931f76d9a8 100644 --- a/test/unit/models/classes/resources/Service/ClassDeleterTest.php +++ b/test/unit/models/classes/resources/Service/ClassDeleterTest.php @@ -834,46 +834,4 @@ static function (string $uri): bool { $this->sut->delete($class); } - - public function testDeleteNonExistingInstance(): void - { - $this->rootClassSpecification - ->expects($this->once()) - ->method('isSatisfiedBy') - ->willReturn(false); - - $this->permissionChecker - ->expects($this->once()) - ->method('hasReadAccess') - ->willReturn(true); - $this->permissionChecker - ->expects($this->once()) - ->method('hasWriteAccess') - ->willReturn(true); - - $classInstance = $this->createMock(core_kernel_classes_Resource::class); - $classInstance - ->expects($this->once()) - ->method('exists') - ->willReturn(false); - - $class = $this->createMock(core_kernel_classes_Class::class); - $class - ->expects($this->once()) - ->method('getUri') - ->willReturn('classUri'); - $class - ->expects($this->once()) - ->method('getSubClasses') - ->willReturn([]); - $class - ->expects($this->once()) - ->method('getInstances') - ->willReturn([$classInstance]); - $class - ->expects($this->never()) - ->method('getProperties'); - - $this->sut->delete($class); - } }