/** * @test */ public function setPaymentMethodsSetsPaymentMethods() { $this->fixture->setData(array()); $paymentMethods = new tx_oelib_List(); $this->fixture->setPaymentMethods($paymentMethods); self::assertSame($paymentMethods, $this->fixture->getPaymentMethods()); }
/** * @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()); }
/** * @test */ public function hasImageForSingleEventWithImageReturnsTrue() { $this->fixture->setData(array('object_type' => tx_seminars_Model_Event::TYPE_COMPLETE, 'image' => 'file.jpg')); self::assertTrue($this->fixture->hasImage()); }