xtremer360
7 months ago

assertStringNotContainsString() error after composer update

Posted 7 months ago by xtremer360

I had run composer update and and went from Laravel 5.8.3 to 5.8.8 when I use assertSee and assertDontSee then I get the error message provided below. Is this something anyone has encountered recently?

/** @test */
    public function an_administrator_can_view_all_archived_events()
    {
        $this->actAs('administrator');
        $archivedEvents = factory(Event::class, 3)->states('archived')->create();
        $scheduledEvent = factory(Event::class)->states('scheduled')->create();

        $response = $this->get(route('events.index', ['state' => 'archived']));
  
        $response->assertOk();
        $response->assertSee(e($archivedEvents[0]->name));
        $response->assertSee(e($archivedEvents[1]->name));
        $response->assertSee(e($archivedEvents[2]->name));
        $response->assertDontSee(e($scheduledEvent->name));
    }
Error: Call to undefined method Illuminate\Foundation\Testing\Assert::assertStringNotContainsString()

Please sign in or create an account to participate in this conversation.