/** * @test */ public function deleteForModelWithOneToManyRelationDeletesRelatedElements() { $uid = $this->testingFramework->createRecord('tx_oelib_test', array('composition' => 1)); $relatedUid = $this->testingFramework->createRecord('tx_oelib_testchild', array('parent' => $uid)); $this->subject->delete($this->subject->find($uid)); self::assertTrue($this->testingFramework->existsExactlyOneRecord('tx_oelib_testchild', 'uid = ' . $relatedUid . ' AND deleted = 1')); }
/** * @test */ public function createFrontEndUserWithEmptyGroupCreatesGroup() { $this->subject->createFrontEndUser(''); self::assertTrue($this->subject->existsExactlyOneRecord('fe_groups')); }