Ooof, got the dependencies all up to date as well

Lots of tests needed fixing, but it seemed to be a whitespace parsing
error in the view files 🤔
This commit is contained in:
Jonny Barnes 2019-10-27 16:15:14 +00:00
parent ec01b3c6a2
commit b2b6693aec
61 changed files with 2057 additions and 1441 deletions

View file

@ -15,19 +15,19 @@ class ArticlesTest extends TestCase
public function test_single_article()
{
$response = $this->get('/blog/' . date('Y') . '/' . date('m') . '/my-new-blog');
$response = $this->get('/blog/' . date('Y') . '/' . date('m') . '/some-code-i-did');
$response->assertViewIs('articles.show');
}
public function test_wrong_date_redirects()
{
$response = $this->get('/blog/1900/01/my-new-blog');
$response->assertRedirect('/blog/' . date('Y') . '/' . date('m') . '/my-new-blog');
$response = $this->get('/blog/1900/01/some-code-i-did');
$response->assertRedirect('/blog/' . date('Y') . '/' . date('m') . '/some-code-i-did');
}
public function test_redirect_for_id()
{
$response = $this->get('/blog/s/1');
$response->assertRedirect('/blog/' . date('Y') . '/' . date('m') . '/my-new-blog');
$response = $this->get('/blog/s/2');
$response->assertRedirect('/blog/' . date('Y') . '/' . date('m') . '/some-code-i-did');
}
}

View file

@ -8,7 +8,7 @@ class BridgyPosseTest extends TestCase
{
public function test_bridgy_twitter_content()
{
$response = $this->get('/notes/E');
$response = $this->get('/notes/4');
$html = $response->content();
$this->assertTrue(is_string(mb_stristr($html, 'p-bridgy-twitter-content')));

View file

@ -2,7 +2,9 @@
namespace Tests\Feature;
use Codebird\Codebird;
use Queue;
use stdClass;
use Tests\TestCase;
use App\Models\Like;
use Tests\TestToken;
@ -191,6 +193,7 @@ END;
$handler = HandlerStack::create($mock);
$client = new Client(['handler' => $handler]);
$this->app->bind(Client::class, $client);
$authorship = new Authorship();
$job->handle($client, $authorship);

View file

@ -676,7 +676,7 @@ class MicropubControllerTest extends TestCase
'/api/post',
[
'action' => 'update',
'url' => config('app.url') . '/notes/L',
'url' => config('app.url') . '/notes/B',
'replace' => [
'syndication' => [
'https://www.swarmapp.com/checkin/the-id',