mirror of
https://github.com/jonathan-martz/pocketbase-php-sdk.git
synced 2026-04-02 23:17:43 +00:00
write first placeholder test
This commit is contained in:
@@ -70,7 +70,6 @@ class Collection
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||
|
||||
$response = curl_exec($ch);
|
||||
// var_dump($response);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
16
tests/CollectionTest.php
Normal file
16
tests/CollectionTest.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php declare(strict_types=1);
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class CollectionTest extends TestCase
|
||||
{
|
||||
public function test(): void
|
||||
{
|
||||
$expected = [];
|
||||
|
||||
$url = 'https://admin.pocketbase.dev';
|
||||
$collection = new \Pb\Collection($url, 'users');
|
||||
$actual = $collection->getList(1,10);
|
||||
|
||||
$this->assertSame($expected, $actual);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user