I am confused, you said you don't have the method in your controller and the error says exactly that you don't have the method in your controller... it seems correct.
From @kyslik's link the updated code for L6 with dusk:
in tests/DuskTestCase.php add disableExceptionHandling()
use Exception;
use App\Exceptions\Handler;
use Illuminate\Contracts\Debug\ExceptionHandler;
abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplication;
/**
* To show the phpunit/dusk exceptions
*/
protected function disableExceptionHandling()
{
$this->app->instance(ExceptionHandler::class, new class extends Handler {
public function __construct() {}
public function report(Exception $e)
{
// no-op
}
public function render($request, Exception $e) {
throw $e;
}
});
}
...
}
In your testcase file tests/Browser/ViewAnotherUsersTweetsTest.php
class ViewAnotherUsersTweetsTest extends DuskTestCase
{
use DatabaseMigrations;
protected function setUp(): void {
parent::setUp();
$this->disableExceptionHandling();
}
...
}