diff --git a/CHANGELOG.md b/CHANGELOG.md index ea4d881..49c9ea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file, in reverse chronological order by release. -## 1.0.2 - TBD +## 1.0.2 - 2019-03-05 ### Added @@ -22,7 +22,8 @@ All notable changes to this project will be documented in this file, in reverse ### Fixed -- Nothing. +- [#40](https://github.com/zendframework/zend-expressive-authentication/pull/45) corrects the name of a configuration parameter name referenced when + raising an exception while invoking `Zend\Expressive\Authentication\UserRepositoryPdoDatabaseFactory`. ## 1.0.1 - 2018-09-28 diff --git a/src/UserRepository/PdoDatabaseFactory.php b/src/UserRepository/PdoDatabaseFactory.php index 82d2411..9bd6adb 100644 --- a/src/UserRepository/PdoDatabaseFactory.php +++ b/src/UserRepository/PdoDatabaseFactory.php @@ -24,7 +24,7 @@ public function __invoke(ContainerInterface $container) : PdoDatabase $pdo = $container->get('config')['authentication']['pdo'] ?? null; if (null === $pdo) { throw new Exception\InvalidConfigException( - 'PDO values are missing in user_register config' + 'PDO values are missing in authentication config' ); } if (! isset($pdo['dsn'])) { diff --git a/test/UserRepository/PdoDatabaseFactoryTest.php b/test/UserRepository/PdoDatabaseFactoryTest.php index fbb4086..6a70ab5 100644 --- a/test/UserRepository/PdoDatabaseFactoryTest.php +++ b/test/UserRepository/PdoDatabaseFactoryTest.php @@ -41,6 +41,7 @@ public function testInvokeWithEmptyConfig() $this->container->get('config')->willReturn([]); $this->expectException(InvalidConfigException::class); + $this->expectExceptionMessage('PDO values are missing in authentication config'); $pdoDatabase = ($this->factory)($this->container->reveal()); }