示例#1
0
 /**
  * @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'));
 }
示例#2
0
 /**
  * @test
  */
 public function createFrontEndUserWithEmptyGroupCreatesGroup()
 {
     $this->subject->createFrontEndUser('');
     self::assertTrue($this->subject->existsExactlyOneRecord('fe_groups'));
 }