test: add failing mastodon test (#3255)

* fix: refactor cache factory

* test: add failing test

* add null cache
This commit is contained in:
Dag 2023-02-15 21:22:37 +01:00 committed by GitHub
parent 787b4d7cad
commit c27a300e02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 69 additions and 50 deletions

View file

@ -0,0 +1,17 @@
<?php
namespace RssBridge\Tests\Bridges;
use PHPUnit\Framework\TestCase;
class MastodonBridgeTest extends TestCase
{
public function test()
{
\Configuration::loadConfiguration(['cache' => ['type' => 'null']]);
$b = new \MastodonBridge();
// https://bird.makeup/users/asmongold/remote_follow
$b->setDatas(['canusername' => '@asmongold@bird.makeup']);
$b->collectData();
}
}