fix closing search dropdown (#1142)
* using a different library for javascript selects, fixing the closing search dropdown * fix closing dropdown for daterangepicker * added missing search button for mobile on customer page * fix meta fields with same names than existing columns
This commit is contained in:
37
tests/Event/SystemConfigurationEventTest.php
Normal file
37
tests/Event/SystemConfigurationEventTest.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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\Event;
|
||||
|
||||
use App\Entity\Configuration;
|
||||
use App\Event\SystemConfigurationEvent;
|
||||
use App\Form\Model\SystemConfiguration;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \App\Event\SystemConfigurationEvent
|
||||
*/
|
||||
class SystemConfigurationEventTest extends TestCase
|
||||
{
|
||||
public function testDefaultValues()
|
||||
{
|
||||
$sut = new SystemConfigurationEvent([]);
|
||||
self::assertIsArray($sut->getConfigurations());
|
||||
self::assertEmpty($sut->getConfigurations());
|
||||
self::assertInstanceOf(SystemConfigurationEvent::class, $sut->addConfiguration(new SystemConfiguration()));
|
||||
self::assertCount(1, $sut->getConfigurations());
|
||||
|
||||
$config = new Configuration();
|
||||
$config->setName('foo')->setValue('bar');
|
||||
$sysConfig = new SystemConfiguration();
|
||||
$sysConfig->setConfiguration([$config]);
|
||||
$sut = new SystemConfigurationEvent([$sysConfig]);
|
||||
self::assertEquals([$sysConfig], $sut->getConfigurations());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user