assertInstanceOf(TenantRepository::class, $factory->createTenantRepository()); $this->assertSame($factory->createTenantRepository(), $factory->createTenantRepository()); $this->assertInstanceOf(DepartmentRepository::class, $factory->createDepartmentRepository()); $this->assertSame($factory->createDepartmentRepository(), $factory->createDepartmentRepository()); $this->assertInstanceOf(UserTenantRepository::class, $factory->createUserTenantRepository()); $this->assertSame($factory->createUserTenantRepository(), $factory->createUserTenantRepository()); $this->assertInstanceOf(PermissionGateway::class, $factory->createPermissionGateway()); $this->assertSame($factory->createPermissionGateway(), $factory->createPermissionGateway()); $this->assertInstanceOf(TenantScopeService::class, $factory->createTenantScopeService()); $this->assertSame($factory->createTenantScopeService(), $factory->createTenantScopeService()); $this->assertInstanceOf(TenantAvatarService::class, $factory->createTenantAvatarService()); $this->assertSame($factory->createTenantAvatarService(), $factory->createTenantAvatarService()); $this->assertInstanceOf(TenantFaviconService::class, $factory->createTenantFaviconService()); $this->assertSame($factory->createTenantFaviconService(), $factory->createTenantFaviconService()); } }