-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from richcongress/v1.0.2
V1.0.2
- Loading branch information
Showing
39 changed files
with
1,097 additions
and
385 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 |
---|---|---|
@@ -1,7 +1,28 @@ | ||
## Version 1.0.2 | ||
|
||
#### Bug fix | ||
|
||
- Fix bad annotation checking for the container. | ||
- Fix some documentation issue again. | ||
- Handles errors for the AbstractCommand. | ||
- Fix CommandTestCase bugs related to the usage of Helpers withing the command. | ||
- Fix not mocked services during the fixture loading. | ||
- Fix Fixtures creation when the property is inherited. | ||
|
||
|
||
#### New features | ||
|
||
- Add handy functions for the fixture creation. | ||
- Add the `DATE_FORMAT` function to the SQLite language that behave like MySQL function. | ||
- Add better `ConnectionFactory`. | ||
- Add the `buildObject` function for all tests. | ||
|
||
|
||
|
||
## Version 1.0.1 | ||
|
||
#### Bug fix | ||
|
||
- Fix composer annotation autoloading | ||
- Fix inspector errors and code cleaning | ||
- Fix some documentation issue | ||
- Fix composer annotation autoloading. | ||
- Fix inspector errors and code cleaning. | ||
- Fix some documentation issue. |
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
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
namespace RichCongress\Bundle\UnitBundle\Doctrine\ConnectionFactory; | ||
|
||
use Doctrine\Bundle\DoctrineBundle\ConnectionFactory; | ||
use Doctrine\Common\EventManager; | ||
use Doctrine\DBAL\Configuration; | ||
use Doctrine\DBAL\Connection; | ||
use Doctrine\DBAL\DBALException; | ||
|
||
/** | ||
* Class TestConnectionFactory | ||
* | ||
* @package RichCongress\Bundle\UnitBundle\Doctrine\ConnectionFactory | ||
* @author Nicolas Guilloux <[email protected]> | ||
* @copyright 2014 - 2020 RichCongress (https://www.richcongress.com) | ||
*/ | ||
class TestConnectionFactory extends ConnectionFactory | ||
{ | ||
/** | ||
* Create a connection by name. | ||
* | ||
* @param array $params | ||
* @param Configuration $config | ||
* @param EventManager $eventManager | ||
* @param array $mappingTypes | ||
* | ||
* @return Connection | ||
* @throws DBALException | ||
*/ | ||
public function createConnection(array $params, Configuration $config = null, EventManager $eventManager = null, array $mappingTypes = []): Connection | ||
{ | ||
$parameters = self::processParameters($params); | ||
|
||
return parent::createConnection($parameters, $config, $eventManager, $mappingTypes); | ||
} | ||
|
||
/** | ||
* @param array $params | ||
* | ||
* @return array | ||
*/ | ||
protected function processParameters(array $params): array | ||
{ | ||
$params['dbName'] = $params['dbName'] ?? 'dbTest'; | ||
$params['dbName'] .= getenv('TEST_TOKEN'); | ||
|
||
return $params; | ||
} | ||
} |
Oops, something went wrong.