/** * @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()); }
/** * @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()); }
/** * @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()); }