coreGroup = new CoreGroup(); $this->mockGroupAdapter = new MockGroupAdapter(); $this->mockGroupDataAccess = new MockGroupDataAccess(); } public function tearDown(): void { $this->coreGroup = null; $this->mockGroupAdapter = null; $this->mockGroupDataAccess = null; } public function testCreateGroup() { $testGroupJson = json_decode(file_get_contents(__DIR__ . '/../resources/testGroup.json'), true); $this->coreGroup->fromSCIM($testGroupJson); $mockGroup = $this->mockGroupAdapter->getMockGroup($this->coreGroup); $groupCreateRes = $this->mockGroupDataAccess->create($mockGroup); $this->assertNotNull($groupCreateRes); } public function testReadAllGroups() { $this->assertNotEmpty($this->mockGroupDataAccess->getAll()); } }