diff --git a/.gitignore b/.gitignore index 6bf0e5f..af2e8f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ -/nbproject - +/.php_cs.cache +/phpunit-skeleton-generator.sh /composer.phar /composer.lock /vendor/ /Resources/doc/_build /bin/phpunit -*~ \ No newline at end of file +*~ diff --git a/composer.json b/composer.json index cdd32ae..d88151f 100644 --- a/composer.json +++ b/composer.json @@ -8,10 +8,10 @@ "stof/doctrine-extensions-bundle": ">=1.2", "jeroendesloovere/vcard-bundle": ">=1.2", "sparkling/vat-bundle": ">=0.1", - "blast-project/core-bundle": ">=0.4", - "blast-project/outer-extension-bundle": ">=0.4", - "blast-project/base-entities-bundle": ">=0.4", - "blast-project/utils-bundle": ">=0.4" + "blast-project/core-bundle": "dev-wip-lisem", + "blast-project/outer-extension-bundle": "dev-wip-lisem", + "blast-project/base-entities-bundle": "dev-wip-lisem", + "blast-project/utils-bundle": "dev-wip-lisem" }, "require-dev": { "symfony/phpunit-bridge": ">=3.2" diff --git a/tests/Functional/.gitkeep b/tests/Functional/.gitkeep deleted file mode 100644 index 8b13789..0000000 --- a/tests/Functional/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/Functional/BundleTest.tpl b/tests/Functional/BundleTest.tpl new file mode 100644 index 0000000..0c01371 --- /dev/null +++ b/tests/Functional/BundleTest.tpl @@ -0,0 +1,26 @@ +container = self::$kernel->getContainer(); + } + + public function testServicesAreInitializable() + { + $serviceIds = array_filter($this->container->getServiceIds(), function ($serviceId) { + return 0 === strpos($serviceId, 'librinfo_crm' . '.'); + }); + foreach ($serviceIds as $serviceId) { + $this->assertNotNull($this->container->get($serviceId)); + } + } +} diff --git a/tests/Resources/App/AppKernel.php b/tests/Resources/App/AppKernel.php new file mode 100644 index 0000000..631093d --- /dev/null +++ b/tests/Resources/App/AppKernel.php @@ -0,0 +1,52 @@ +load(__DIR__ . '/config/config.yml'); + } + + public function getCacheDir() + { + return sys_get_temp_dir() . '/Librinfo/CRMBundle/cache/' . $this->getEnvironment(); + } + + public function getLogDir() + { + return sys_get_temp_dir() . '/Librinfo/CRMBundle/logs'; + } +} diff --git a/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/AddressExtension.php b/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/AddressExtension.php new file mode 100644 index 0000000..a1bf2c7 --- /dev/null +++ b/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/AddressExtension.php @@ -0,0 +1,89 @@ +customer; + } + + /** + * {@inheritdoc} + */ + public function setCustomer(CustomerInterface $customer = null) + { + $this->customer = $customer; + } + + /** + * {@inheritdoc} + */ + public function getPhoneNumber() + { + return $this->phoneNumber; + } + + /** + * {@inheritdoc} + */ + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + + /** + * {@inheritdoc} + */ + public function getCompany() + { + return $this->company; + } + + /** + * {@inheritdoc} + */ + public function setCompany($company) + { + $this->company = $company; + } + + /** + * @return string + */ + public function getFullName() + { + return sprintf( + '%s %s', $this->firstName, $this->lastName + ); + } +} diff --git a/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/CircleExtension.php b/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/CircleExtension.php new file mode 100644 index 0000000..ab55308 --- /dev/null +++ b/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/CircleExtension.php @@ -0,0 +1,17 @@ +username; + } + + /** + * {@inheritdoc} + */ + public function setUsername($username) + { + $this->username = $username; + } + + /** + * {@inheritdoc} + */ + public function getUsernameCanonical() + { + return $this->usernameCanonical; + } + + /** + * {@inheritdoc} + */ + public function setUsernameCanonical($usernameCanonical) + { + $this->usernameCanonical = $usernameCanonical; + } + + /** + * {@inheritdoc} + */ + public function getSalt() + { + return $this->salt; + } + + /** + * {@inheritdoc} + */ + public function getPlainPassword() + { + return $this->plainPassword; + } + + /** + * {@inheritdoc} + */ + public function setPlainPassword($password) + { + $this->plainPassword = $password; + } + + /** + * {@inheritdoc} + */ + public function getPassword() + { + return $this->password; + } + + /** + * {@inheritdoc} + */ + public function setPassword($password) + { + $this->password = $password; + } + + /** + * {@inheritdoc} + */ + public function getExpiresAt() + { + return $this->expiresAt; + } + + /** + * @param \DateTime $date + */ + public function setExpiresAt(\DateTime $date = null) + { + $this->expiresAt = $date; + } + + /** + * {@inheritdoc} + */ + public function getCredentialsExpireAt() + { + return $this->credentialsExpireAt; + } + + /** + * {@inheritdoc} + */ + public function setCredentialsExpireAt(\DateTime $date = null) + { + $this->credentialsExpireAt = $date; + } + + /** + * {@inheritdoc} + */ + public function getLastLogin() + { + return $this->lastLogin; + } + + /** + * {@inheritdoc} + */ + public function setLastLogin(\DateTime $time = null) + { + $this->lastLogin = $time; + } + + /** + * {@inheritdoc} + */ + public function getEmailVerificationToken() + { + return $this->emailVerificationToken; + } + + /** + * {@inheritdoc} + */ + public function setEmailVerificationToken($verificationToken) + { + $this->emailVerificationToken = $verificationToken; + } + + /** + * {@inheritdoc} + */ + public function getPasswordResetToken() + { + return $this->passwordResetToken; + } + + /** + * {@inheritdoc} + */ + public function setPasswordResetToken($passwordResetToken) + { + $this->passwordResetToken = $passwordResetToken; + } + + /** + * {@inheritdoc} + */ + public function isCredentialsNonExpired() + { + return !$this->hasExpired($this->credentialsExpireAt); + } + + /** + * {@inheritdoc} + */ + public function isAccountNonExpired() + { + return !$this->hasExpired($this->expiresAt); + } + + /** + * {@inheritdoc} + */ + public function setLocked($locked) + { + $this->locked = $locked; + } + + /** + * {@inheritdoc} + */ + public function isAccountNonLocked() + { + return !$this->locked; + } + + /** + * {@inheritdoc} + */ + public function hasRole($role) + { + return in_array(strtoupper($role), $this->getRoles(), true); + } + + /** + * {@inheritdoc} + */ + public function addRole($role) + { + $role = strtoupper($role); + if (!in_array($role, $this->roles, true)) { + $this->roles[] = $role; + } + } + + /** + * {@inheritdoc} + */ + public function removeRole($role) + { + if (false !== $key = array_search(strtoupper($role), $this->roles, true)) { + unset($this->roles[$key]); + $this->roles = array_values($this->roles); + } + } + + /** + * {@inheritdoc} + */ + public function getRoles() + { + return $this->roles; + } + + /** + * {@inheritdoc} + */ + public function isPasswordRequestNonExpired(\DateInterval $ttl) + { + return null !== $this->passwordRequestedAt && new \DateTime() <= $this->passwordRequestedAt->add($ttl); + } + + /** + * {@inheritdoc} + */ + public function getPasswordRequestedAt() + { + return $this->passwordRequestedAt; + } + + /** + * {@inheritdoc} + */ + public function setPasswordRequestedAt(\DateTime $date = null) + { + $this->passwordRequestedAt = $date; + } + + /** + * {@inheritdoc} + */ + public function isVerified() + { + return null !== $this->verifiedAt; + } + + /** + * {@inheritdoc} + */ + public function getVerifiedAt() + { + return $this->verifiedAt; + } + + /** + * {@inheritdoc} + */ + public function setVerifiedAt(\DateTime $verifiedAt = null) + { + $this->verifiedAt = $verifiedAt; + } + + /** + * {@inheritdoc} + */ + public function eraseCredentials() + { + $this->plainPassword = null; + } + + /** + * {@inheritdoc} + */ + public function getOAuthAccounts() + { + return $this->oauthAccounts; + } + + /** + * {@inheritdoc} + */ + public function getOAuthAccount($provider) + { + if ($this->oauthAccounts->isEmpty()) { + return null; + } + $filtered = $this->oauthAccounts->filter(function (UserOAuthInterface $oauth) use ($provider) { + return $provider === $oauth->getProvider(); + }); + if ($filtered->isEmpty()) { + return null; + } + + return $filtered->current(); + } + + /** + * {@inheritdoc} + */ + public function addOAuthAccount(UserOAuthInterface $oauth) + { + if (!$this->oauthAccounts->contains($oauth)) { + $this->oauthAccounts->add($oauth); + $oauth->setUser($this); + } + } + + /** + * The serialized data have to contain the fields used by the equals method and the username. + * + * @return string + */ + public function serialize() + { + return serialize([ + $this->password, + $this->salt, + $this->usernameCanonical, + $this->username, + $this->locked, + $this->enabled, + $this->id, + ]); + } + + /** + * @param string $serialized + */ + public function unserialize($serialized) + { + $data = unserialize($serialized); + // add a few extra elements in the array to ensure that we have enough keys when unserializing + // older data which does not include all properties. + $data = array_merge($data, array_fill(0, 2, null)); + list( + $this->password, + $this->salt, + $this->usernameCanonical, + $this->username, + $this->locked, + $this->enabled, + $this->id + ) = $data; + } + + /** + * @param \DateTime $date + * + * @return bool + */ + protected function hasExpired(\DateTime $date = null) + { + return null !== $date && new \DateTime() >= $date; + } + + /** + * {@inheritdoc} + */ + public function getCustomer() + { + return $this->customer; + } + + /** + * {@inheritdoc} + */ + public function setCustomer(CustomerInterface $customer = null) + { + if ($this->customer !== $customer) { + $this->customer = $customer; + $this->assignUser($customer); + } + } + + /** + * @param CustomerInterface $customer + */ + protected function assignUser(CustomerInterface $customer = null) + { + if (null !== $customer) { + $customer->setUser($this); + } + } + + /** + * {@inheritdoc} + */ + public function getOrders() + { + return $this->orders; + } + + /** + * {@inheritdoc} + */ + public function getUser() + { + return $this->user; + } + + /** + * {@inheritdoc} + */ + public function setUser(UserInterface $user = null) + { + if ($this->user !== $user) { + $this->user = $user; + $this->assignCustomer($user); + } + } + + /** + * {@inheritdoc} + */ + public function hasUser() + { + return null !== $this->user; + } + + /** + * @param ShopUserInterface|null $user + */ + protected function assignCustomer(ShopUserInterface $user = null) + { + if (null !== $user) { + $user->setCustomer($this); + } + } + + /** + * {@inheritdoc} + */ + public function getEmailCanonical() + { + return $this->emailCanonical; + } + + /** + * {@inheritdoc} + */ + public function setEmailCanonical($emailCanonical) + { + $this->emailCanonical = $emailCanonical; + } + + /** + * {@inheritdoc} + */ + public function getFullName() + { + return trim(sprintf('%s %s', $this->firstName, $this->lastName)); + } + + /** + * {@inheritdoc} + */ + public function getFirstName() + { + return $this->firstName; + } + + /** + * {@inheritdoc} + */ + public function setFirstName($firstName) + { + $this->firstName = $firstName; + } + + /** + * {@inheritdoc} + */ + public function getLastName() + { + return $this->lastName; + } + + /** + * {@inheritdoc} + */ + public function setLastName($lastName) + { + $this->lastName = $lastName; + } + + /** + * {@inheritdoc} + */ + public function getBirthday() + { + return $this->birthday; + } + + /** + * {@inheritdoc} + */ + public function setBirthday(\DateTime $birthday = null) + { + $this->birthday = $birthday; + } + + /** + * {@inheritdoc} + */ + public function getGender() + { + return $this->gender; + } + + /** + * {@inheritdoc} + */ + public function setGender($gender) + { + $this->gender = $gender; + } + + /** + * {@inheritdoc} + */ + public function isMale() + { + return CustomerInterface::MALE_GENDER === $this->gender; + } + + /** + * {@inheritdoc} + */ + public function isFemale() + { + return CustomerInterface::FEMALE_GENDER === $this->gender; + } + + /** + * {@inheritdoc} + */ + public function getGroup() + { + return $this->group; + } + + /** + * {@inheritdoc} + */ + public function setGroup(CustomerGroupInterface $group = null) + { + $this->group = $group; + } + + /** + * {@inheritdoc} + */ + public function getPhoneNumber() + { + return $this->phoneNumber; + } + + /** + * {@inheritdoc} + */ + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + + /** + * {@inheritdoc} + */ + public function isSubscribedToNewsletter() + { + return $this->subscribedToNewsletter; + } + + /** + * {@inheritdoc} + */ + public function setSubscribedToNewsletter($subscribedToNewsletter) + { + $this->subscribedToNewsletter = $subscribedToNewsletter; + } + + public function updateName() + { + $firstname = mb_convert_case($this->getFirstName(), MB_CASE_TITLE); + $name = mb_strtoupper($this->getLastName()); + $this->setName(sprintf( + '%s %s', + $firstname, + $name + )); + } + + /** + * @return AddressInterface + */ + public function getDefaultAddress() + { + return $this->defaultAddress; + } + + /** + * @param AddressInterface $defaultAddress + * + * @return self + */ + public function setDefaultAddress(AddressInterface $defaultAddress = null) + { + $this->defaultAddress = $defaultAddress; + if (null !== $defaultAddress) { + $this->addAddress($defaultAddress); + } + + return $this; + } + + /** + * @param AddressInterface $address + * + * @return self + */ + public function addAddress(AddressInterface $address) + { + if (!$this->hasAddress($address)) { + $this->addresses->add($address); + $address->setCustomer($this); + if (!$this->getDefaultAddress()) { + $this->setDefaultAddress($address); + } + } + + return $this; + } + + /** + * @param AddressInterface $address + * + * @return self + */ + public function removeAddress(AddressInterface $address) + { + $this->addresses->removeElement($address); + if ($address->getId() == $this->defaultAddress->getId()) { + if ($this->addresses->count() > 0) { + $this->defaultAddress = $this->addresses[0]; + } else { + $this->defaultAddress = null; + } + } + + return $this; + } + + /** + * @param AddressInterface $address + * + * @return bool + */ + public function hasAddress(AddressInterface $address) + { + return $this->addresses->contains($address); + } + + /** + * @return Collection|AddressInterface[] + */ + public function getAddresses() + { + return $this->addresses; + } +} diff --git a/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/OrganismExtensionInterface.php b/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/OrganismExtensionInterface.php new file mode 100644 index 0000000..e3de2e1 --- /dev/null +++ b/tests/Resources/App/Entity/OuterExtension/LibrinfoCRMBundle/OrganismExtensionInterface.php @@ -0,0 +1,19 @@ +render('default/index.html.twig', [ + 'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR, + ]); + } +} diff --git a/tests/Resources/AppBundle/Entity/OuterExtension/LibrinfoCRMBundle/AddressExtension.php b/tests/Resources/AppBundle/Entity/OuterExtension/LibrinfoCRMBundle/AddressExtension.php new file mode 100644 index 0000000..04765e2 --- /dev/null +++ b/tests/Resources/AppBundle/Entity/OuterExtension/LibrinfoCRMBundle/AddressExtension.php @@ -0,0 +1,15 @@ +object = new CustomerAdmin; + */ + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers \Librinfo\CRMBundle\Admin\CustomerAdmin::configureFormFields + * + * @todo Implement testConfigureFormFields(). + */ + public function testConfigureFormFields() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Admin\CustomerAdmin::createQuery + * + * @todo Implement testCreateQuery(). + */ + public function testCreateQuery() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Admin\CustomerAdmin::getNewInstance + * + * @todo Implement testGetNewInstance(). + */ + public function testGetNewInstance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Admin\CustomerAdmin::setCodeGenerator + * + * @todo Implement testSetCodeGenerator(). + */ + public function testSetCodeGenerator() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/Unit/Entity/CategoryTest.php b/tests/Unit/Entity/CategoryTest.php new file mode 100644 index 0000000..d6243fe --- /dev/null +++ b/tests/Unit/Entity/CategoryTest.php @@ -0,0 +1,347 @@ +object = new Category; + */ + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::addOrganism + * + * @todo Implement testAddOrganism(). + */ + public function testAddOrganism() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::removeOrganism + * + * @todo Implement testRemoveOrganism(). + */ + public function testRemoveOrganism() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getOrganisms + * + * @todo Implement testGetOrganisms(). + */ + public function testGetOrganisms() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getId + * + * @todo Implement testGetId(). + */ + public function testGetId() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::setId + * + * @todo Implement testSetId(). + */ + public function testSetId() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::isNew + * + * @todo Implement testIsNew(). + */ + public function testIsNew() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::__toString + * + * @todo Implement test__toString(). + */ + public function test__toString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::setName + * + * @todo Implement testSetName(). + */ + public function testSetName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getName + * + * @todo Implement testGetName(). + */ + public function testGetName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::setTreeLft + * + * @todo Implement testSetTreeLft(). + */ + public function testSetTreeLft() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getTreeLft + * + * @todo Implement testGetTreeLft(). + */ + public function testGetTreeLft() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::setTreeRgt + * + * @todo Implement testSetTreeRgt(). + */ + public function testSetTreeRgt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getTreeRgt + * + * @todo Implement testGetTreeRgt(). + */ + public function testGetTreeRgt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::setTreeLvl + * + * @todo Implement testSetTreeLvl(). + */ + public function testSetTreeLvl() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getTreeLvl + * + * @todo Implement testGetTreeLvl(). + */ + public function testGetTreeLvl() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::addTreeChild + * + * @todo Implement testAddTreeChild(). + */ + public function testAddTreeChild() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::removeTreeChild + * + * @todo Implement testRemoveTreeChild(). + */ + public function testRemoveTreeChild() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getTreeChildren + * + * @todo Implement testGetTreeChildren(). + */ + public function testGetTreeChildren() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::setTreeRoot + * + * @todo Implement testSetTreeRoot(). + */ + public function testSetTreeRoot() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getTreeRoot + * + * @todo Implement testGetTreeRoot(). + */ + public function testGetTreeRoot() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::setTreeParent + * + * @todo Implement testSetTreeParent(). + */ + public function testSetTreeParent() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::getTreeParent + * + * @todo Implement testGetTreeParent(). + */ + public function testGetTreeParent() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Category::initCollections + * + * @todo Implement testInitCollections(). + */ + public function testInitCollections() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/Unit/Entity/CountryTest.php b/tests/Unit/Entity/CountryTest.php new file mode 100644 index 0000000..ace49e3 --- /dev/null +++ b/tests/Unit/Entity/CountryTest.php @@ -0,0 +1,200 @@ +object = new Country(); + /* + * @todo: uncomment this line + * $this->object = new Country; + */ + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::setCode + * @covers \Librinfo\CRMBundle\Entity\Country::getCode + * + * @todo Implement testSetCode(). + */ + public function testSetCode() + { + $test = 'ABG'; + $this->object->setCode($test); + $this->assertEquals('ABG', $this->object->getCode()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::setEnabled + * @covers \Librinfo\CRMBundle\Entity\Country::getEnabled + * + * @todo Implement testSetEnabled(). + */ + public function testSetEnabled() + { + $this->assertNull($this->object->getEnabled()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::enable + * + * @todo Implement testEnable(). + */ + public function testEnable() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::disable + * + * @todo Implement testDisable(). + */ + public function testDisable() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::addProvince + * + * @todo Implement testAddProvince(). + */ + public function testAddProvince() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::removeProvince + * + * @todo Implement testRemoveProvince(). + */ + public function testRemoveProvince() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::getProvinces + * + * @todo Implement testGetProvinces(). + */ + public function testGetProvinces() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::hasProvinces + * + * @todo Implement testHasProvinces(). + */ + public function testHasProvinces() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::hasProvince + * + * @todo Implement testHasProvince(). + */ + public function testHasProvince() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::getId + * @covers \Librinfo\CRMBundle\Entity\Country::setId + * + * @todo Implement testGetId(). + */ + public function testGetId() + { + $id = 12; + $this->object->setId($id); + $this->assertEquals(12, $this->object->getId()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::isNew + * + * @todo Implement testIsNew(). + */ + public function testIsNew() + { + $id = 'AD12'; + $this->object->setId($id); + $this->object->getId(); + $this->assertFalse($this->object->isNew()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Country::__toString + * + * @todo Implement test__toString(). + */ + public function test__toString() + { + $this->assertInternalType('string', $this->object->__toString()); + } +} diff --git a/tests/Unit/Entity/OrganismGroupTest.php b/tests/Unit/Entity/OrganismGroupTest.php new file mode 100644 index 0000000..dd43909 --- /dev/null +++ b/tests/Unit/Entity/OrganismGroupTest.php @@ -0,0 +1,230 @@ +object = new OrganismGroup; + */ + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::getContact + * + * @todo Implement testGetContact(). + */ + public function testGetContact() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::setContact + * + * @todo Implement testSetContact(). + */ + public function testSetContact() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::getOrganism + * + * @todo Implement testGetOrganism(). + */ + public function testGetOrganism() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::setOrganism + * + * @todo Implement testSetOrganism(). + */ + public function testSetOrganism() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::getRoles + * + * @todo Implement testGetRoles(). + */ + public function testGetRoles() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::setRoles + * + * @todo Implement testSetRoles(). + */ + public function testSetRoles() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::addRole + * + * @todo Implement testAddRole(). + */ + public function testAddRole() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::removeRole + * + * @todo Implement testRemoveRole(). + */ + public function testRemoveRole() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::__toString + * + * @todo Implement test__toString(). + */ + public function test__toString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::getId + * + * @todo Implement testGetId(). + */ + public function testGetId() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::setId + * + * @todo Implement testSetId(). + */ + public function testSetId() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::isNew + * + * @todo Implement testIsNew(). + */ + public function testIsNew() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::setName + * + * @todo Implement testSetName(). + */ + public function testSetName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\OrganismGroup::getName + * + * @todo Implement testGetName(). + */ + public function testGetName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/Unit/Entity/OrganismTest.php b/tests/Unit/Entity/OrganismTest.php new file mode 100644 index 0000000..959b2bd --- /dev/null +++ b/tests/Unit/Entity/OrganismTest.php @@ -0,0 +1,2025 @@ +object = new Organism(); + /* + * @todo: uncomment this line + * $this->object = new Organism; + */ + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::initOrganism + * + * @todo Implement testInitOrganism(). + */ + public function testInitOrganism() + { + $this->object->InitOrganism(); + $test = $this->object->getActive(); + $this->assertTrue($test); + $this->assertInstanceOf(ArrayCollection::class, $this->object->getCircles()); + $this->assertInstanceOf(ArrayCollection::class, $this->object->getPositions()); + $this->assertInstanceOf(ArrayCollection::class, $this->object->getPhones()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::__clone + * + * @todo Implement test__clone(). + */ + public function test__clone() + { + // init + $id = 'id'; + $this->object->setId($id); + // test methods + $clone = clone $this->object; + $this->assertNull($clone->getId()); + $this->assertInstanceOf(ArrayCollection::class, $clone->getPositions()); + //test object + $this->assertEquals($id, $this->object->getId()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::__toString + * + * @todo Implement test__toString(). + */ + public function test__toString() + { + $firstname = 'firstname'; + $name = 'name'; + $this->object->setFirstname($firstname); + $this->object->setName($name); + $this->object->getFirstname(); + $this->object->getName(); + $this->assertEquals('Firstname NAME', $this->object->__toString()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setFirstname + * @covers \Librinfo\CRMBundle\Entity\Organism::getFirstname + * + * @todo Implement testSetFirstname(). + */ + public function testSetFirstname() + { + $firstname = 'firstname'; + $this->object->setFirstname($firstname); + $this->assertEquals('Firstname', $this->object->getFirstname()); + + $firstname = 'FIRSTNAME'; + $this->object->setFirstname($firstname); + $this->assertEquals('Firstname', $this->object->getFirstname()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getLastname + * + * @todo Implement testGetLastname(). + */ + public function testGetLastname() + { + $lastname = 'lastname'; + $this->object->setLastname($lastname); + $this->assertEquals('LASTNAME', $this->object->getLastname()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setShortname + * @covers \Librinfo\CRMBundle\Entity\Organism::getShortname + * + * @todo Implement testSetShortname(). + */ + public function testSetShortname() + { + $shortname = 'shortname'; + $this->object->setShortname($shortname); + $this->assertEquals('shortname', $this->object->getShortname()); + + $shortname = 'SHORTname'; + $this->object->setShortname('SHORTname'); + $this->assertContains('SHORTname', $this->object->getShortname()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setTitle + * @covers \Librinfo\CRMBundle\Entity\Organism::getTitle + * + * @todo Implement testSetTitle(). + */ + public function testSetTitle() + { + $title = 'Ambassadeurs'; + $this->object->setTitle($title); + $this->assertContains('Ambassadeurs', $this->object->getTitle()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setFlashOnControl + * + * @todo Implement testSetFlashOnControl(). + */ + public function testSetFlashOnControl() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getFlashOnControl + * + * @todo Implement testGetFlashOnControl(). + */ + public function testGetFlashOnControl() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setFamilyContact + * + * @todo Implement testSetFamilyContact(). + */ + public function testSetFamilyContact() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getFamilyContact + * + * @todo Implement testGetFamilyContact(). + */ + public function testGetFamilyContact() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setCulture + * @covers \Librinfo\CRMBundle\Entity\Organism::getCulture + * + * @todo Implement testSetCulture(). + */ + public function testSetCulture() + { + $culture = 'culture'; + $this->object->setCulture($culture); + $this->assertSame('culture', $this->object->getCulture()); + $this->assertInternalType('string', $this->object->getCulture()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setUrl + * + * @todo Implement testSetUrl(). + */ + public function testSetUrl() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getUrl + * + * @todo Implement testGetUrl(). + */ + public function testGetUrl() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getName + * @covers \Librinfo\CRMBundle\Entity\Organism::setName + * + * @todo Implement testGetName(). + */ + public function testGetName() + { + $name = 'name'; + $this->object->setName($name); + $this->assertEquals('NAME', $this->object->getName()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setAdministrativeNumber + * + * @todo Implement testSetAdministrativeNumber(). + */ + public function testSetAdministrativeNumber() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getAdministrativeNumber + * + * @todo Implement testGetAdministrativeNumber(). + */ + public function testGetAdministrativeNumber() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setCategory + * + * @todo Implement testSetCategory(). + */ + public function testSetCategory() + { + $this->assertNull($this->object->getCategory()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getCategory + * + * @todo Implement testGetCategory(). + */ + public function testGetCategory() + { + $this->assertNull($this->object->getCategory()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setIsIndividual + * @covers \Librinfo\CRMBundle\Entity\Organism::getIsIndividual + * @covers \Librinfo\CRMBundle\Entity\Organism::isIndividual + * + * @todo Implement testSetIsIndividual(). + */ + public function testSetIsIndividual() + { + $this->assertEquals(false, $this->object->getIsIndividual()); + $this->assertInternalType('bool', $this->object->isIndividual()); + $this->assertFalse($this->object->isIndividual()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setIsCustomer + * @covers \Librinfo\CRMBundle\Entity\Organism::getIsCustomer + * + * @todo Implement testSetIsCustomer(). + */ + public function testSetIsCustomer() + { + $this->assertFalse($this->object->getIsCustomer()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setCustomerCode + * + * @todo Implement testSetCustomerCode(). + */ + public function testSetCustomerCode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getCustomerCode + * + * @todo Implement testGetCustomerCode(). + */ + public function testGetCustomerCode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setIsSupplier + * @covers \Librinfo\CRMBundle\Entity\Organism::getIsSupplier + * @covers \Librinfo\CRMBundle\Entity\Organism::isSupplier + * + * @todo Implement testSetIsSupplier(). + */ + public function testSetIsSupplier() + { + $this->assertFalse($this->object->getIsSupplier()); + $this->assertInternalType('bool', $this->object->isSupplier()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setSupplierCode + * + * @todo Implement testSetSupplierCode(). + */ + public function testSetSupplierCode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getSupplierCode + * + * @todo Implement testGetSupplierCode(). + */ + public function testGetSupplierCode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setIban + * + * @todo Implement testSetIban(). + */ + public function testSetIban() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getIban + * + * @todo Implement testGetIban(). + */ + public function testGetIban() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setVat + * + * @todo Implement testSetVat(). + */ + public function testSetVat() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getVat + * + * @todo Implement testGetVat(). + */ + public function testGetVat() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setVatVerified + * @covers \Librinfo\CRMBundle\Entity\Organism::getVatVerified + * + * @todo Implement testSetVatVerified(). + */ + public function testSetVatVerified() + { + $this->assertEquals(0, $this->object->getVatVerified()); + $this->assertInternalType('int', $this->object->getVatVerified()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setAlert + * + * @todo Implement testSetAlert(). + */ + public function testSetAlert() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getAlert + * + * @todo Implement testGetAlert(). + */ + public function testGetAlert() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setActive + * + * @todo Implement testSetActive(). + */ + public function testSetActive() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getActive + * + * @todo Implement testGetActive(). + */ + public function testGetActive() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setCatalogueSent + * + * @todo Implement testSetCatalogueSent(). + */ + public function testSetCatalogueSent() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getCatalogueSent + * + * @todo Implement testGetCatalogueSent(). + */ + public function testGetCatalogueSent() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setCatalogueSendMean + * + * @todo Implement testSetCatalogueSendMean(). + */ + public function testSetCatalogueSendMean() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getCatalogueSendMean + * + * @todo Implement testGetCatalogueSendMean(). + */ + public function testGetCatalogueSendMean() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setLastCatalogueSentDate + * + * @todo Implement testSetLastCatalogueSentDate(). + */ + public function testSetLastCatalogueSentDate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getLastCatalogueSentDate + * + * @todo Implement testGetLastCatalogueSentDate(). + */ + public function testGetLastCatalogueSentDate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setFirstCatalogueSentDate + * + * @todo Implement testSetFirstCatalogueSentDate(). + */ + public function testSetFirstCatalogueSentDate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getFirstCatalogueSentDate + * + * @todo Implement testGetFirstCatalogueSentDate(). + */ + public function testGetFirstCatalogueSentDate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setSource + * + * @todo Implement testSetSource(). + */ + public function testSetSource() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getSource + * + * @todo Implement testGetSource(). + */ + public function testGetSource() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getDefaultPhone + * + * @todo Implement testGetDefaultPhone(). + */ + public function testGetDefaultPhone() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setDefaultPhone + * + * @todo Implement testSetDefaultPhone(). + */ + public function testSetDefaultPhone() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addPhone + * + * @todo Implement testAddPhone(). + */ + public function testAddPhone() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::removePhone + * + * @todo Implement testRemovePhone(). + */ + public function testRemovePhone() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::hasPhone + * + * @todo Implement testHasPhone(). + */ + public function testHasPhone() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getPhones + * + * @todo Implement testGetPhones(). + */ + public function testGetPhones() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addIndividual + * + * @todo Implement testAddIndividual(). + */ + public function testAddIndividual() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::removeIndividual + * + * @todo Implement testRemoveIndividual(). + */ + public function testRemoveIndividual() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getIndividuals + * + * @todo Implement testGetIndividuals(). + */ + public function testGetIndividuals() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addOrganization + * + * @todo Implement testAddOrganization(). + */ + public function testAddOrganization() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::removeOrganization + * + * @todo Implement testRemoveOrganization(). + */ + public function testRemoveOrganization() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getOrganizations + * + * @todo Implement testGetOrganizations(). + */ + public function testGetOrganizations() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isPersonal + * + * @todo Implement testIsPersonal(). + */ + public function testIsPersonal() + { + $this->assertFalse($this->object->isPersonal()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getFulltextName + * + * @todo Implement testGetFulltextName(). + */ + public function testGetFulltextName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getId + * @covers \Librinfo\CRMBundle\Entity\Organism::setId + * + * @todo Implement testGetId(). + */ + public function testGetId() + { + $id = 'id'; + $this->object->setId($id); + $test = $this->object->getId(); + $this->assertEquals('id', $test); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isNew + * + * @todo Implement testIsNew(). + */ + public function testIsNew() + { + $id = 'id'; + $this->object->setId($id); + $this->object->getId(); + $this->assertFalse($this->object->IsNew()); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getCreatedAt + * + * @todo Implement testGetCreatedAt(). + */ + public function testGetCreatedAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setCreatedAt + * + * @todo Implement testSetCreatedAt(). + */ + public function testSetCreatedAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getUpdatedAt + * + * @todo Implement testGetUpdatedAt(). + */ + public function testGetUpdatedAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setUpdatedAt + * + * @todo Implement testSetUpdatedAt(). + */ + public function testSetUpdatedAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getEmail + * + * @todo Implement testGetEmail(). + */ + public function testGetEmail() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setEmail + * + * @todo Implement testSetEmail(). + */ + public function testSetEmail() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isEmailNpai + * + * @todo Implement testIsEmailNpai(). + */ + public function testIsEmailNpai() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setEmailNpai + * + * @todo Implement testSetEmailNpai(). + */ + public function testSetEmailNpai() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isEmailNoNewsletter + * + * @todo Implement testIsEmailNoNewsletter(). + */ + public function testIsEmailNoNewsletter() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setEmailNoNewsletter + * + * @todo Implement testSetEmailNoNewsletter(). + */ + public function testSetEmailNoNewsletter() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addPosition + * + * @todo Implement testAddPosition(). + */ + public function testAddPosition() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::removePosition + * + * @todo Implement testRemovePosition(). + */ + public function testRemovePosition() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getPositions + * + * @todo Implement testGetPositions(). + */ + public function testGetPositions() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addCircle + * + * @todo Implement testAddCircle(). + */ + public function testAddCircle() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::removeCircle + * + * @todo Implement testRemoveCircle(). + */ + public function testRemoveCircle() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getCircles + * + * @todo Implement testGetCircles(). + */ + public function testGetCircles() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setDescription + * + * @todo Implement testSetDescription(). + */ + public function testSetDescription() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getDescription + * + * @todo Implement testGetDescription(). + */ + public function testGetDescription() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addSearchIndex + * + * @todo Implement testAddSearchIndex(). + */ + public function testAddSearchIndex() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::removeSearchIndex + * + * @todo Implement testRemoveSearchIndex(). + */ + public function testRemoveSearchIndex() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getSearchIndexes + * + * @todo Implement testGetSearchIndexes(). + */ + public function testGetSearchIndexes() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setSearchIndexes + * + * @todo Implement testSetSearchIndexes(). + */ + public function testSetSearchIndexes() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::analyseField + * + * @todo Implement testAnalyseField(). + */ + public function testAnalyseField() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getUsername + * + * @todo Implement testGetUsername(). + */ + public function testGetUsername() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setUsername + * + * @todo Implement testSetUsername(). + */ + public function testSetUsername() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getUsernameCanonical + * + * @todo Implement testGetUsernameCanonical(). + */ + public function testGetUsernameCanonical() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setUsernameCanonical + * + * @todo Implement testSetUsernameCanonical(). + */ + public function testSetUsernameCanonical() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getSalt + * + * @todo Implement testGetSalt(). + */ + public function testGetSalt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getPlainPassword + * + * @todo Implement testGetPlainPassword(). + */ + public function testGetPlainPassword() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setPlainPassword + * + * @todo Implement testSetPlainPassword(). + */ + public function testSetPlainPassword() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getPassword + * + * @todo Implement testGetPassword(). + */ + public function testGetPassword() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setPassword + * + * @todo Implement testSetPassword(). + */ + public function testSetPassword() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getExpiresAt + * + * @todo Implement testGetExpiresAt(). + */ + public function testGetExpiresAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setExpiresAt + * + * @todo Implement testSetExpiresAt(). + */ + public function testSetExpiresAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getCredentialsExpireAt + * + * @todo Implement testGetCredentialsExpireAt(). + */ + public function testGetCredentialsExpireAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setCredentialsExpireAt + * + * @todo Implement testSetCredentialsExpireAt(). + */ + public function testSetCredentialsExpireAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getLastLogin + * + * @todo Implement testGetLastLogin(). + */ + public function testGetLastLogin() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setLastLogin + * + * @todo Implement testSetLastLogin(). + */ + public function testSetLastLogin() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getEmailVerificationToken + * + * @todo Implement testGetEmailVerificationToken(). + */ + public function testGetEmailVerificationToken() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setEmailVerificationToken + * + * @todo Implement testSetEmailVerificationToken(). + */ + public function testSetEmailVerificationToken() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getPasswordResetToken + * + * @todo Implement testGetPasswordResetToken(). + */ + public function testGetPasswordResetToken() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setPasswordResetToken + * + * @todo Implement testSetPasswordResetToken(). + */ + public function testSetPasswordResetToken() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isCredentialsNonExpired + * + * @todo Implement testIsCredentialsNonExpired(). + */ + public function testIsCredentialsNonExpired() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isAccountNonExpired + * + * @todo Implement testIsAccountNonExpired(). + */ + public function testIsAccountNonExpired() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setLocked + * + * @todo Implement testSetLocked(). + */ + public function testSetLocked() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isAccountNonLocked + * + * @todo Implement testIsAccountNonLocked(). + */ + public function testIsAccountNonLocked() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::hasRole + * + * @todo Implement testHasRole(). + */ + public function testHasRole() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addRole + * + * @todo Implement testAddRole(). + */ + public function testAddRole() + { + /*$role = 'role'; + $this->object->addRole($role); + $test = $this->object->getRoles(); + $this->assertTrue('role'===$test);*/ + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::removeRole + * + * @todo Implement testRemoveRole(). + */ + public function testRemoveRole() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getRoles + * + * @todo Implement testGetRoles(). + */ + public function testGetRoles() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isPasswordRequestNonExpired + * + * @todo Implement testIsPasswordRequestNonExpired(). + */ + public function testIsPasswordRequestNonExpired() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getPasswordRequestedAt + * + * @todo Implement testGetPasswordRequestedAt(). + */ + public function testGetPasswordRequestedAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setPasswordRequestedAt + * + * @todo Implement testSetPasswordRequestedAt(). + */ + public function testSetPasswordRequestedAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isVerified + * + * @todo Implement testIsVerified(). + */ + public function testIsVerified() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getVerifiedAt + * + * @todo Implement testGetVerifiedAt(). + */ + public function testGetVerifiedAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setVerifiedAt + * + * @todo Implement testSetVerifiedAt(). + */ + public function testSetVerifiedAt() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::eraseCredentials + * + * @todo Implement testEraseCredentials(). + */ + public function testEraseCredentials() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getOAuthAccounts + * + * @todo Implement testGetOAuthAccounts(). + */ + public function testGetOAuthAccounts() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getOAuthAccount + * + * @todo Implement testGetOAuthAccount(). + */ + public function testGetOAuthAccount() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addOAuthAccount + * + * @todo Implement testAddOAuthAccount(). + */ + public function testAddOAuthAccount() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::serialize + * + * @todo Implement testSerialize(). + */ + public function testSerialize() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::unserialize + * + * @todo Implement testUnserialize(). + */ + public function testUnserialize() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getCustomer + * + * @todo Implement testGetCustomer(). + */ + public function testGetCustomer() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setCustomer + * + * @todo Implement testSetCustomer(). + */ + public function testSetCustomer() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getOrders + * + * @todo Implement testGetOrders(). + */ + public function testGetOrders() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getUser + * + * @todo Implement testGetUser(). + */ + public function testGetUser() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setUser + * + * @todo Implement testSetUser(). + */ + public function testSetUser() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::hasUser + * + * @todo Implement testHasUser(). + */ + public function testHasUser() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getEmailCanonical + * + * @todo Implement testGetEmailCanonical(). + */ + public function testGetEmailCanonical() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setEmailCanonical + * + * @todo Implement testSetEmailCanonical(). + */ + public function testSetEmailCanonical() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getFullName + * + * @todo Implement testGetFullName(). + */ + public function testGetFullName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getBirthday + * + * @todo Implement testGetBirthday(). + */ + public function testGetBirthday() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setBirthday + * + * @todo Implement testSetBirthday(). + */ + public function testSetBirthday() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getGender + * + * @todo Implement testGetGender(). + */ + public function testGetGender() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setGender + * + * @todo Implement testSetGender(). + */ + public function testSetGender() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isMale + * + * @todo Implement testIsMale(). + */ + public function testIsMale() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isFemale + * + * @todo Implement testIsFemale(). + */ + public function testIsFemale() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getGroup + * + * @todo Implement testGetGroup(). + */ + public function testGetGroup() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setGroup + * + * @todo Implement testSetGroup(). + */ + public function testSetGroup() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getPhoneNumber + * + * @todo Implement testGetPhoneNumber(). + */ + public function testGetPhoneNumber() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setPhoneNumber + * + * @todo Implement testSetPhoneNumber(). + */ + public function testSetPhoneNumber() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::isSubscribedToNewsletter + * + * @todo Implement testIsSubscribedToNewsletter(). + */ + public function testIsSubscribedToNewsletter() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setSubscribedToNewsletter + * + * @todo Implement testSetSubscribedToNewsletter(). + */ + public function testSetSubscribedToNewsletter() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::updateName + * + * @todo Implement testUpdateName(). + */ + public function testUpdateName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getDefaultAddress + * + * @todo Implement testGetDefaultAddress(). + */ + public function testGetDefaultAddress() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::setDefaultAddress + * + * @todo Implement testSetDefaultAddress(). + */ + public function testSetDefaultAddress() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::addAddress + * + * @todo Implement testAddAddress(). + */ + public function testAddAddress() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::removeAddress + * + * @todo Implement testRemoveAddress(). + */ + public function testRemoveAddress() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::hasAddress + * + * @todo Implement testHasAddress(). + */ + public function testHasAddress() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers \Librinfo\CRMBundle\Entity\Organism::getAddresses + * + * @todo Implement testGetAddresses(). + */ + public function testGetAddresses() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/Web/UrlTest.php b/tests/Web/UrlTest.php new file mode 100644 index 0000000..0acf6cc --- /dev/null +++ b/tests/Web/UrlTest.php @@ -0,0 +1,45 @@ +request('GET', $url); + + $this->assertTrue($client->getResponse()->isSuccessful()); + } + + public function urlProvider() + { + return array( + array('/'), + array('/admin/dashboard') + // Add here page to test ... + ); + } + + public function tryToTest() + { + $client = self::createClient(); + + $crawler = $client->request('GET', '/admin/dashboard'); + + /* Example */ + /* + $link = $crawler->selectLink('Add new')->link(); + $crawler = $client->click($link); + $this->assertContains( + 'Title', + $crawler->filter('label') + ); + */ + } +}