Replace string namespaces with ::class

This commit is contained in:
Philipp Holzer 2019-02-24 13:40:54 +01:00
parent 9f11476ca0
commit 5fc42a744e
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
11 changed files with 52 additions and 26 deletions

View file

@ -26,7 +26,7 @@ trait DBStructureMockTrait
public function mockUpdate($args = [], $return = true, $times = null)
{
if (!isset($this->dbStructure)) {
$this->dbStructure = \Mockery::mock('alias:Friendica\Database\DBStructure');
$this->dbStructure = \Mockery::mock('alias:' . DBStructure::class);
}
$this->dbStructure
@ -46,7 +46,7 @@ trait DBStructureMockTrait
public function mockExistsTable($tableName, $return = true, $times = null)
{
if (!isset($this->dbStructure)) {
$this->dbStructure = \Mockery::mock('alias:Friendica\Database\DBStructure');
$this->dbStructure = \Mockery::mock('alias:' . DBStructure::class);
}
$this->dbStructure