Add addCount, addFirst, addMax, and addMin functions
Signed-off-by: David Arendsen <darendsen@gamepoint.com>
This commit is contained in:
parent
b7e0b21c8f
commit
fc99922700
15 changed files with 463 additions and 23 deletions
29
tests/Functions/MinFunctionTest.php
Normal file
29
tests/Functions/MinFunctionTest.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Functions;
|
||||
|
||||
use Arendsen\FluxQueryBuilder\Functions\Min;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class MinFunctionTest extends TestCase
|
||||
{
|
||||
public function testSimpleMin()
|
||||
{
|
||||
$expression = new Min();
|
||||
|
||||
$query = '|> min() ';
|
||||
|
||||
$this->assertEquals($query, $expression->__toString());
|
||||
}
|
||||
|
||||
public function testMinWithColumn()
|
||||
{
|
||||
$expression = new Min('something');
|
||||
|
||||
$query = '|> min(column: "something") ';
|
||||
|
||||
$this->assertEquals($query, $expression->__toString());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue