public function testSetGetIsDraft() { $input = true; $this->target->setIsDraft($input); $this->assertSame($this->target->isDraft(), $input); $input = false; $this->target->setIsDraft($input); $this->assertSame($this->target->isDraft(), $input); }
protected function initOrganization() { $repo = $this->getApplicationServiceLocator()->get('repositories')->get('Organizations/Organization'); $name = 'Job Repository Test Organization'; $results = $repo->findByName($name); $organization = $results[0]; if (!$organization) { $organization = new Organization(); $organization->setIsDraft(false); $organization->setOrganizationName(new OrganizationName()); $organization->getOrganizationName()->setName($name); $this->dm->persist($organization); $this->dm->flush($organization); $this->dm->refresh($organization); } $this->organization = $organization; }