Testing assertViewHas emptyness?

How would I go about testing to make sure the subscriptions array is not empty here?

Livewire::test(ListSubscriptions::class)->assertViewHas('subscriptions');

I think you mean checking if a public property on your component is set? A public property in a component is always shared with your livewire blade.php eka your view file.

You can check this using

->assertSet(‘subscription’, '[‘foo’,‘bar’]);

on your Livewire::test

Regards,