mirror of
https://github.com/kevinpapst/kimai2.git
synced 2025-01-10 19:47:35 +00:00
96043afd6a
* merge installation and update commands * generate metadata from array * new command to list available packages * added a management script to simplify updates * added directory for dev files * helper functions for installation and listing of packages * run plugin database installers
27 lines
671 B
PHP
27 lines
671 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Kimai time-tracking app.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace App\Tests\Plugin;
|
|
|
|
use App\Plugin\PluginMetadata;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
/**
|
|
* @covers \App\Plugin\PluginMetadata
|
|
*/
|
|
class PluginMetadataTest extends TestCase
|
|
{
|
|
public function testNonExistingDirectoryThrowsException(): void
|
|
{
|
|
$this->expectException(\Exception::class);
|
|
$this->expectExceptionMessage('Bundle does not ship composer.json, which is required since 2.0.');
|
|
|
|
PluginMetadata::createFromPath(__DIR__);
|
|
}
|
|
}
|