Пример #1
0
 /**
  * @test
  */
 public function setPaymentMethodsSetsPaymentMethods()
 {
     $this->fixture->setData(array());
     $paymentMethods = new tx_oelib_List();
     $this->fixture->setPaymentMethods($paymentMethods);
     self::assertSame($paymentMethods, $this->fixture->getPaymentMethods());
 }
Пример #2
0
 /**
  * @test
  */
 public function setPaymentMethodsThrowsException()
 {
     $this->setExpectedException('BadMethodCallException', 'setPaymentMethods may only be called on single events and event ' . 'topics, but not on event dates.');
     $topic = new tx_seminars_Model_Event();
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topic));
     $this->fixture->setPaymentMethods(new tx_oelib_List());
 }
Пример #3
0
 /**
  * @test
  */
 public function hasImageForSingleEventWithImageReturnsTrue()
 {
     $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE, 'image' => 'file.jpg'));
     self::assertTrue($this->fixture->hasImage());
 }