/** @test */ public function should_be_able_to_select_second_connection() { $emRead = $this->em->on('read'); $this->assertInstanceOf('Doctrine\\ORM\\EntityManager', $emRead); $params = config('database.connections.mysql'); $connParams = $emRead->getConnection()->getParams(); $this->assertTrue(in_array($params['read']['database'], $connParams)); $this->assertTrue(in_array($params['read']['username'], $connParams)); }