makapaka's avatar

assertDatabaseHas does not exist?

Just following some Jeffrey's testing methods, in my feature test case I have assertDatabaseHas, but getting error BadMethodCallException: Method assertDatabaseHas does not exist. Am i missing a dependancy or something ?

Again as per Jeffrey's methods, I'm using sqlite for the testing.

I'm using the DatabaseMigrations trait and the test extends TestCase as expected, what could I be missing here?

This is in Laravel 5.5

0 likes
1 reply
makapaka's avatar

please ignore this sillyness, i was doing $response->assert... instead of $this->assert...

1 like

Please or to participate in this conversation.