File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace Tests \Feature ;
44
5+ use App \Features \ShowAuthButtons ;
56use App \Models \User ;
67use Illuminate \Foundation \Testing \RefreshDatabase ;
78use Illuminate \Support \Facades \Hash ;
9+ use Laravel \Pennant \Feature ;
810use Tests \TestCase ;
911
1012class CustomerAuthenticationTest extends TestCase
1113{
1214 use RefreshDatabase;
1315
16+ protected function setUp (): void
17+ {
18+ parent ::setUp ();
19+
20+ // Enable the auth feature flag for all authentication tests
21+ Feature::define (ShowAuthButtons::class, true );
22+ }
23+
1424 public function test_customer_can_view_login_page (): void
1525 {
1626 $ response = $ this ->get ('/login ' );
Original file line number Diff line number Diff line change 22
33namespace Tests \Feature ;
44
5+ use App \Features \ShowAuthButtons ;
56use App \Models \License ;
67use App \Models \User ;
78use Illuminate \Foundation \Testing \RefreshDatabase ;
9+ use Laravel \Pennant \Feature ;
810use Tests \TestCase ;
911
1012class CustomerLicenseManagementTest extends TestCase
1113{
1214 use RefreshDatabase;
1315
16+ protected function setUp (): void
17+ {
18+ parent ::setUp ();
19+
20+ // Enable the auth feature flag for all license management tests
21+ Feature::define (ShowAuthButtons::class, true );
22+ }
23+
1424 public function test_customer_can_view_licenses_page (): void
1525 {
1626 $ user = User::factory ()->create ();
Original file line number Diff line number Diff line change 22
33namespace Tests \Feature ;
44
5+ use App \Features \ShowAuthButtons ;
56use App \Models \License ;
67use App \Models \SubLicense ;
78use App \Models \User ;
89use Illuminate \Foundation \Testing \RefreshDatabase ;
910use Illuminate \Support \Facades \Http ;
1011use Illuminate \Support \Facades \Queue ;
12+ use Laravel \Pennant \Feature ;
1113use Tests \TestCase ;
1214
1315class CustomerSubLicenseManagementTest extends TestCase
1416{
1517 use RefreshDatabase;
1618
19+ protected function setUp (): void
20+ {
21+ parent ::setUp ();
22+
23+ // Enable the auth feature flag for all sub-license management tests
24+ Feature::define (ShowAuthButtons::class, true );
25+ }
26+
1727 public function test_customer_can_create_sub_license_when_license_supports_it (): void
1828 {
1929 Queue::fake ();
Original file line number Diff line number Diff line change 22
33namespace Tests \Feature ;
44
5+ use App \Features \ShowAuthButtons ;
6+ use Illuminate \Foundation \Testing \RefreshDatabase ;
7+ use Laravel \Pennant \Feature ;
58use PHPUnit \Framework \Attributes \Test ;
69use Tests \TestCase ;
710
811class MobileRouteTest extends TestCase
912{
13+ use RefreshDatabase;
14+
15+ protected function setUp (): void
16+ {
17+ parent ::setUp ();
18+
19+ // Enable the auth feature flag since the pricing page might reference it
20+ Feature::define (ShowAuthButtons::class, false );
21+ }
22+
1023 #[Test]
1124 public function mobile_route_does_not_include_stripe_payment_links ()
1225 {
You can’t perform that action at this time.
0 commit comments