coreUser = new CoreUser(); $this->mockUserDataAccess = new MockUserDataAccess(); $this->mockUserAdapter = new MockUserAdapter(); } public function tearDown(): void { $this->coreUser = null; $this->mockUserDataAccess = null; $this->mockUserAdapter = null; } public function testCreateUser() { $testUserJson = json_decode(file_get_contents(__DIR__ . '/../resources/testUser.json'), true); $this->coreUser->fromSCIM($testUserJson); $mockUser = $this->mockUserAdapter->getMockUser($this->coreUser); $userCreateRes = $this->mockUserDataAccess->create($mockUser); $this->assertNotNull($userCreateRes); } public function testReadAllUsers() { $this->assertNotEmpty($this->mockUserDataAccess->getAll()); } }