/** * @test */ public function updateOnNonDefaultDatabase() { $table = 'test'; $data = array('title' => 'yml file updated'); $where = "id = '2'"; $sql = "SELECT title\n\t\t\t\tFROM {$this->trueDatabase2}.{$table}\n\t\t\t\tWHERE id = '2'"; $loadedRecord = $this->databaseConnection->getRow($sql); $this->assertEquals('yml file', $loadedRecord['title']); $this->databaseConnection->update($table, $data, $where, $this->database2); $sql = "SELECT title\n\t\t\t\tFROM {$this->trueDatabase2}.{$table}\n\t\t\t\tWHERE id = '2'"; $updatedRecord = $this->databaseConnection->getRow($sql); $this->assertEquals('yml file updated', $updatedRecord['title'], $this->database2); }