예제 #1
0
 /**
  * @testdox test the send carbon copy flag
  * @covers Applications\Entity\Attributes::getSendCarbonCopy
  * @covers Applications\Entity\Attributes::setSendCarbonCopy
  */
 public function testSetGetSendCarbonCopy()
 {
     $input = true;
     $this->target->setSendCarbonCopy($input);
     $this->assertEquals($input, $this->target->getSendCarbonCopy());
     $input = false;
     $this->target->setSendCarbonCopy($input);
     $this->assertEquals($input, $this->target->getSendCarbonCopy());
 }
예제 #2
0
 /**
  * @dataProvider providerBooleanValues
  * @testdox test the send carbon copy flag
  * @covers Applications\Entity\Attributes::getSendCarbonCopy
  * @covers Applications\Entity\Attributes::setSendCarbonCopy
  */
 public function testSetGetSendCarbonCopy($input, $expected)
 {
     $this->target->setSendCarbonCopy($input);
     $this->assertEquals($expected, $this->target->getSendCarbonCopy());
 }
예제 #3
0
 /**
  * @covers Applications\Entity\Application::getAttributes
  * @covers Applications\Entity\Application::setAttributes
  */
 public function testSetGetAttributes()
 {
     $attributes = new Attributes();
     $attributes->setSendCarbonCopy(true)->setAcceptedPrivacyPolicy(true);
     $this->target->setAttributes($attributes);
     $this->assertEquals($attributes, $this->target->getAttributes());
 }