|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * This file is part of OPUS. The software OPUS has been originally developed |
| 5 | + * at the University of Stuttgart with funding from the German Research Net, |
| 6 | + * the Federal Department of Higher Education and Research and the Ministry |
| 7 | + * of Science, Research and the Arts of the State of Baden-Wuerttemberg. |
| 8 | + * |
| 9 | + * OPUS 4 is a complete rewrite of the original OPUS software and was developed |
| 10 | + * by the Stuttgart University Library, the Library Service Center |
| 11 | + * Baden-Wuerttemberg, the Cooperative Library Network Berlin-Brandenburg, |
| 12 | + * the Saarland University and State Library, the Saxon State Library - |
| 13 | + * Dresden State and University Library, the Bielefeld University Library and |
| 14 | + * the University Library of Hamburg University of Technology with funding from |
| 15 | + * the German Research Foundation and the European Regional Development Fund. |
| 16 | + * |
| 17 | + * LICENCE |
| 18 | + * OPUS is free software; you can redistribute it and/or modify it under the |
| 19 | + * terms of the GNU General Public License as published by the Free Software |
| 20 | + * Foundation; either version 2 of the Licence, or any later version. |
| 21 | + * OPUS is distributed in the hope that it will be useful, but WITHOUT ANY |
| 22 | + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 23 | + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 24 | + * details. You should have received a copy of the GNU General Public License |
| 25 | + * along with OPUS; if not, write to the Free Software Foundation, Inc., 51 |
| 26 | + * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 27 | + * |
| 28 | + * @copyright Copyright (c) 2024, OPUS 4 development team |
| 29 | + * @license http://www.gnu.org/licenses/gpl.html General Public License |
| 30 | + */ |
| 31 | + |
| 32 | +namespace OpusTest\Bibtex\Import\Console; |
| 33 | + |
| 34 | +use Opus\Bibtex\Import\Console\BibtexCommandProvider; |
| 35 | +use PHPUnit\Framework\TestCase; |
| 36 | +use Symfony\Component\Console\Command\Command; |
| 37 | + |
| 38 | +class BibtexCommandProviderTest extends TestCase |
| 39 | +{ |
| 40 | + public function testGetCommands() |
| 41 | + { |
| 42 | + $provider = new BibtexCommandProvider(); |
| 43 | + $commands = $provider->getCommands(); |
| 44 | + |
| 45 | + $this->assertCount(2, $commands); |
| 46 | + |
| 47 | + foreach ($commands as $command) { |
| 48 | + $this->assertInstanceOf(Command::class, $command); |
| 49 | + } |
| 50 | + } |
| 51 | +} |
0 commit comments