Rename namespace Function keyword to Functions to prevent errors
Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
parent
4c1a1a0af8
commit
79edee7400
19 changed files with 31 additions and 31 deletions
38
tests/Functions/FromFunctionTest.php
Normal file
38
tests/Functions/FromFunctionTest.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Arendsen\FluxQueryBuilder\Functions\From;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class FromFunctionTest extends TestCase {
|
||||
|
||||
/**
|
||||
* @dataProvider somethingProvider
|
||||
*/
|
||||
public function testSomething($settings, $query)
|
||||
{
|
||||
$expression = new From($settings);
|
||||
|
||||
$this->assertEquals($expression->__toString(), $query);
|
||||
}
|
||||
|
||||
public function somethingProvider(): array
|
||||
{
|
||||
return [
|
||||
'from bucket' => [
|
||||
[
|
||||
'bucket' => 'test-bucket',
|
||||
],
|
||||
'from(bucket: "test-bucket") '
|
||||
],
|
||||
'from bucket and host' => [
|
||||
[
|
||||
'bucket' => 'test-bucket',
|
||||
'host' => 'test',
|
||||
],
|
||||
'from(bucket: "test-bucket", host: "test") '
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue