Skip to content

Commit

Permalink
chore: Remove test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevermind23 committed Dec 5, 2024
1 parent 7cf6d4d commit 4990aec
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions test/unit/models/classes/resources/Service/ClassDeleterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 4990aec

Please sign in to comment.