]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/DBAMockTrait.php
Merge pull request #8269 from MrPetovan/bug/frio-more-actions
[friendica.git] / tests / Util / DBAMockTrait.php
index 296e3539496f225f1397686ed91212ced47ec449..932cceea8826547f4e73807592216cbfa5171e79 100644 (file)
@@ -1,7 +1,27 @@
 <?php
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Test\Util;
 
+use Friendica\Database\DBA;
 use Mockery\MockInterface;
 
 class DBAStub
@@ -22,7 +42,7 @@ trait DBAMockTrait
        private function checkMock()
        {
                if (!isset($this->dbaMock)) {
-                       $this->dbaMock = \Mockery::namedMock('Friendica\Database\DBA', 'Friendica\Test\Util\DBAStub');
+                       $this->dbaMock = \Mockery::namedMock(DBA::class, DBAStub::class);
                }
        }