This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
forked from flef/Incipio
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move HautelookAliceBundle configuration in dev configuration as is a dev bundle * Move CsaGuzzleBundle to production bundle as is used in production mode * Removed SenioLabsGeneratorBundle * Moved tests of UserBundle to the test folder as was no longer executed in src * Remove web/config.php file from StyleCI inspection as will raise warning at each composer update * Passed theofidry/alice-bundle-extension to stable * Moved PHPUnit related source code to tests/PHPUnit
- Loading branch information
Showing
16 changed files
with
107 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ finder: | |
- app/autoload.php | ||
- app/autoload.php.cache | ||
- app/SymfonyRequirements.php | ||
- web/config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ env: | |
- PATH="$HOME/.composer/vendor/bin:$PATH" | ||
- GITHUB_PAGES_COMMIT_MESSAGE="Rebuild pages at $(git rev-parse --short HEAD)" | ||
- if [[ -z "$GITHUB_PAGES_TOKEN" ]]; then | ||
then GITHUB_PAGES_REMOTE="https://user:${GITHUB_PAGES_TOKEN}@github.com/in6pio/Incipio.git"; | ||
GITHUB_PAGES_REMOTE="https://user:${GITHUB_PAGES_TOKEN}@github.com/in6pio/Incipio.git"; | ||
fi; | ||
- GITHUB_USER_NAME="TravisBot" | ||
- GITHUB_USER_EMAIL="[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,21 +9,18 @@ | |
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace ApiBundle\Test\Entity; | ||
namespace PHPUnit\Framework; | ||
|
||
use ApiBundle\Test\FluentTestCaseInterface; | ||
use Doctrine\ORM\Tools\SchemaTool; | ||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | ||
use Symfony\Component\PropertyAccess\StringUtil; | ||
|
||
/** | ||
* Class EntityTestCase: test case for entities. | ||
* | ||
* @link http://en.wikipedia.org/wiki/Fluent_interface | ||
* Base class for entity tests. | ||
* | ||
* @author Théo FIDRY <[email protected]> | ||
*/ | ||
abstract class AbstractEntityTestCase extends KernelTestCase implements FluentTestCaseInterface | ||
abstract class AbstractEntityTestCase extends KernelTestCase implements EntityTestCaseInterface | ||
{ | ||
/** | ||
* @var \Doctrine\Bundle\DoctrineBundle\Registry | ||
|
@@ -59,7 +56,7 @@ public function setUp() | |
} | ||
|
||
/** | ||
* @return string Tested entity FQCN | ||
* {@inheritdoc} | ||
*/ | ||
abstract public function getEntityClassName(); | ||
|
||
|
@@ -106,36 +103,18 @@ public function testFluentImplementation(array $data = []) | |
} | ||
} | ||
|
||
/** | ||
* @testdox Test the entity property accessors (getters, setters, hassers, issers). | ||
* | ||
* @param array $data | ||
*/ | ||
abstract public function testPropertyAccessors(array $data = []); | ||
|
||
/** | ||
* Ensure that when the entity is deleted, the relations are properly unset. | ||
* | ||
* @coversNothing | ||
* | ||
* @param array $data | ||
* | ||
* @return | ||
*/ | ||
abstract public function testDeleteEntity(array $data = []); | ||
|
||
/** | ||
* @return array Optimal set of data for generating a complete entity. | ||
*/ | ||
abstract public function fluentDataProvider(); | ||
|
||
/** | ||
* @testdox Test the model validation constraints with valid data. | ||
* {@inheritdoc} | ||
* | ||
* @coversNothing | ||
* @dataProvider validDataProvider | ||
*/ | ||
public function testValidationConstraintsWithValidData($data, $groups = null) | ||
public function testValidationConstraintsWithValidData(array $data, $groups = null) | ||
{ | ||
$reflClass = new \ReflectionClass($this->getEntityClassName()); | ||
$entity = $reflClass->newInstanceArgs($data); | ||
|
@@ -144,12 +123,12 @@ public function testValidationConstraintsWithValidData($data, $groups = null) | |
} | ||
|
||
/** | ||
* @testdox Test the model validation constraints with invalid data. | ||
* {@inheritdoc} | ||
* | ||
* @coversNothing | ||
* @dataProvider invalidDataProvider | ||
*/ | ||
public function testValidationConstraintsWithInvalidData($data, $groups = null) | ||
public function testValidationConstraintsWithInvalidData(array $data, $groups = null) | ||
{ | ||
$reflClass = new \ReflectionClass($this->getEntityClassName()); | ||
$entity = $reflClass->newInstanceArgs($data); | ||
|
@@ -170,7 +149,7 @@ abstract public function validDataProvider(); | |
abstract public function invalidDataProvider(); | ||
|
||
/** | ||
* Camelizes a given string. | ||
* Will camelize a given string. | ||
* | ||
* @see \Symfony\Component\PropertyAccessor::camelize() | ||
* | ||
|
Oops, something went wrong.