Ejemplo n.º 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());
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 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());
 }