diff --git a/tests/Service/Access/PermissionServiceTest.php b/tests/Service/Access/PermissionServiceTest.php index 5aa4260..0b91db8 100644 --- a/tests/Service/Access/PermissionServiceTest.php +++ b/tests/Service/Access/PermissionServiceTest.php @@ -169,40 +169,6 @@ class PermissionServiceTest extends TestCase // ── Delegation methods ─────────────────────────────────────────── - public function testListDelegatesToRepository(): void - { - $expected = [['id' => 1, 'key' => 'a']]; - $this->permissionRepository->expects($this->any())->method('list')->willReturn($expected); - $this->assertSame($expected, $this->service->list()); - } - - public function testListActiveDelegatesToRepository(): void - { - $expected = [['id' => 2, 'key' => 'b', 'active' => 1]]; - $this->permissionRepository->expects($this->any())->method('listActive')->willReturn($expected); - $this->assertSame($expected, $this->service->listActive()); - } - - public function testListPagedDelegatesToRepository(): void - { - $options = ['page' => 1, 'limit' => 10]; - $expected = ['rows' => [], 'total' => 0]; - $this->permissionRepository->expects($this->any())->method('listPaged')->with($options)->willReturn($expected); - $this->assertSame($expected, $this->service->listPaged($options)); - } - - public function testFindDelegatesToRepository(): void - { - $this->permissionRepository->expects($this->any())->method('find')->with(5)->willReturn(['id' => 5, 'key' => 'x']); - $this->assertSame(['id' => 5, 'key' => 'x'], $this->service->find(5)); - } - - public function testFindByKeyDelegatesToRepository(): void - { - $this->permissionRepository->expects($this->any())->method('findByKey')->with('users.view')->willReturn(['id' => 1, 'key' => 'users.view']); - $this->assertSame(['id' => 1, 'key' => 'users.view'], $this->service->findByKey('users.view')); - } - // ── createFromAdmin ────────────────────────────────────────────── public function testCreateFromAdminSucceeds(): void diff --git a/tests/Service/Tenant/TenantServiceTest.php b/tests/Service/Tenant/TenantServiceTest.php index 4ee8935..4308d4d 100644 --- a/tests/Service/Tenant/TenantServiceTest.php +++ b/tests/Service/Tenant/TenantServiceTest.php @@ -33,22 +33,6 @@ class TenantServiceTest extends TestCase ); } - public function testListDelegatesToRepository(): void - { - $expected = [ - ['id' => 1, 'description' => 'Tenant A'], - ['id' => 2, 'description' => 'Tenant B'], - ]; - - $this->tenantRepository->expects($this->once()) - ->method('list') - ->willReturn($expected); - - $result = $this->service->list(); - - self::assertSame($expected, $result); - } - public function testCreateFromAdminSucceeds(): void { $input = $this->validInput();