fetch toolbar results without page reload (#518)
This commit is contained in:
@@ -94,7 +94,8 @@ class ProjectControllerTest extends APIControllerBaseTest
|
||||
|
||||
public function getCollectionTestData()
|
||||
{
|
||||
yield ['/api/projects', [], [[true, 1], [false, 3], [false, 1]]];
|
||||
// if you wonder why: SQLite does case-sensitive ordering, so "Title" > "fifth”
|
||||
yield ['/api/projects', [], [[true, 1], [false, 1], [false, 3]]];
|
||||
yield ['/api/projects', ['customer' => '1'], [[true, 1], [false, 1]]];
|
||||
yield ['/api/projects', ['customer' => '1', 'visible' => VisibilityQuery::SHOW_VISIBLE], [[true, 1], [false, 1]]];
|
||||
yield ['/api/projects', ['customer' => '1', 'visible' => VisibilityQuery::SHOW_BOTH], [[true, 1], [false, 1], [false, 1]]];
|
||||
|
||||
@@ -161,13 +161,16 @@ class ExtensionsTest extends TestCase
|
||||
$sut = $this->getSut($this->localeEn, 'XX');
|
||||
$this->assertEquals('02:37 h', $sut->duration($record->getDuration()));
|
||||
|
||||
// test negative duratiobn
|
||||
// test negative duration
|
||||
$sut = $this->getSut($this->localeEn, 'XX');
|
||||
$this->assertEquals('?', $sut->duration('-1'));
|
||||
|
||||
// test zero duration
|
||||
$sut = $this->getSut($this->localeEn, 'XX');
|
||||
$this->assertEquals('00:00 h', $sut->duration('0'));
|
||||
|
||||
$sut = $this->getSut($this->localeEn, 'XX');
|
||||
$this->assertNull($sut->duration(null));
|
||||
}
|
||||
|
||||
protected function getTimesheet($seconds)
|
||||
|
||||
Reference in New Issue
Block a user