Example #1
0
 /** @test */
 public function it_can_set_the_database_data()
 {
     $this->repository->setDatabaseData('mysql', ['database' => 'foobar', 'username' => 'foo', 'password' => 'bar']);
     $this->assertCount(4, $this->repository->getDatabaseData());
     $this->assertCount(7, $this->repository->getDatabaseData('mysql'));
     $this->assertEquals('mysql', $this->repository->getDatabaseDriver());
 }
Example #2
0
 /**
  * Sets the database config data for the given driver.
  *
  * @param  string  $driver
  * @param  array  $data
  * @return $this
  */
 public function setDatabaseData($driver, array $data = [])
 {
     $this->repository->setDatabaseData($driver, $data);
     return $this;
 }