url = getenv('POCKETBASE_URL') ?: 'https://admin.pocketbase.dev'; $this->collection = new Collection($this->url, 'users'); } public function testCreateCollectionItem(){ // $this->expectException(ClientException::class); // $this->collection->create(['name' => 'Hallo Welt']); } public function testCreateCollectionItemAuthed(){ $this->collection->authAsUser('admin@jmartz.de', 'rockt123?!'); self::assertNotEmpty($this->collection); // $response = $this->collection->create(['name' => 'Hallo Welt']); // var_dump($response); } }