/** * @expectedException \Magento\Setup\Exception * @expectedExceptionMessage Sorry, but we support MySQL version */ public function testCheckDatabaseConnectionIncompatible() { $this->connection->expects($this->once())->method('fetchOne')->with('SELECT version()')->willReturn('5.5.40-0ubuntu0.12.04.1'); $this->object->checkDatabaseConnection('name', 'host', 'user', 'password'); }