Exemplo n.º 1
0
 public function testRemoveLimitToOtherDatesForTopicFindsSingleEventRecords()
 {
     $topicUid = $this->testingFramework->createRecord('tx_seminars_seminars', array('object_type' => tx_seminars_Model_Event::TYPE_TOPIC));
     $dateUid = $this->testingFramework->createRecord('tx_seminars_seminars', array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topicUid));
     $this->testingFramework->createRecord('tx_seminars_seminars', array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE, 'topic' => $topicUid));
     $date = new tx_seminars_seminar($dateUid);
     $this->fixture->limitToOtherDatesForTopic($date);
     $this->fixture->removeLimitToOtherDatesForTopic();
     $bag = $this->fixture->build();
     self::assertSame(3, $bag->count());
 }