diff --git a/src/Illuminate/Database/Connection.php b/src/Illuminate/Database/Connection.php index af5803354957..3d61bb643f15 100755 --- a/src/Illuminate/Database/Connection.php +++ b/src/Illuminate/Database/Connection.php @@ -40,7 +40,7 @@ class Connection implements ConnectionInterface * * @var \PDO|\Closure */ - protected $readPdo; + public $readPdo; /** * The name of the connected database. diff --git a/tests/Database/DatabaseConnectionTest.php b/tests/Database/DatabaseConnectionTest.php index baf3b382ac54..0e7ac5be8849 100755 --- a/tests/Database/DatabaseConnectionTest.php +++ b/tests/Database/DatabaseConnectionTest.php @@ -55,6 +55,7 @@ public function testSelectOneCallsSelectAndReturnsSingleResult() $this->assertSame('foo', $connection->selectOne('foo', ['bar' => 'baz'])); } + /** @group Foo */ public function testSelectProperlyCallsPDO() { $pdo = $this->getMockBuilder(DatabaseConnectionTestMockPDO::class)->setMethods(['prepare'])->getMock(); @@ -66,7 +67,7 @@ public function testSelectProperlyCallsPDO() $statement->expects($this->once())->method('fetchAll')->willReturn(['boom']); $pdo->expects($this->once())->method('prepare')->with('foo')->willReturn($statement); $mock = $this->getMockConnection(['prepareBindings'], $writePdo); - $mock->setReadPdo($pdo); + $mock->readPdo = $pdo; $mock->expects($this->once())->method('prepareBindings')->with($this->equalTo(['foo' => 'bar']))->willReturn(['foo' => 'bar']); $results = $mock->select('foo', ['foo' => 'bar']); $this->assertEquals(['boom'], $results); diff --git a/tests/Database/DatabaseEloquentBuilderTest.php b/tests/Database/DatabaseEloquentBuilderTest.php index 2c40e2106a0e..8fe3916a3b94 100755 --- a/tests/Database/DatabaseEloquentBuilderTest.php +++ b/tests/Database/DatabaseEloquentBuilderTest.php @@ -1044,7 +1044,6 @@ public function testWhereKeyMethodWithStringZero() $builder->whereKey($int); } - /** @group Foo */ public function testWhereKeyMethodWithStringNull() { $model = new EloquentBuilderTestStubStringPrimaryKey(); @@ -1097,7 +1096,6 @@ public function testWhereKeyNotMethodWithStringZero() $builder->whereKeyNot($int); } - /** @group Foo */ public function testWhereKeyNotMethodWithStringNull() { $model = new EloquentBuilderTestStubStringPrimaryKey(); diff --git a/tests/Mail/MailSesTransportTest.php b/tests/Mail/MailSesTransportTest.php index 92f5b8f6d754..543505bcf0bc 100644 --- a/tests/Mail/MailSesTransportTest.php +++ b/tests/Mail/MailSesTransportTest.php @@ -13,7 +13,6 @@ class MailSesTransportTest extends TestCase { - /** @group Foo */ public function testGetTransport() { $container = new Container();