public function testGetDb() { $table = $this->getMockBuilder(Table::class)->disableOriginalConstructor()->getMock(); $db = $this->getMockBuilder(Db::class)->disableOriginalConstructor()->getMock(); $table->expects($this->once())->method('getDb')->will($this->returnValue($db)); $row = new Row($table, self::$languageRow); $this->assertSame($db, $row->getDb()); }