<?php

use function Pest\Laravel\get;

test('Lising page exists', function($url) {
    get($url)->assertStatus(200);
})->with([
    'Machines listing' => '/machines',
    'Test equipment listing' => '/testequipment',
    'Test equipment calibration dates liisting' => '/testequipment/caldates',
]);
// namespace Tests\Feature;

// use Tests\TestCase;

// class ListingsTest extends TestCase
// {
//     /**
//      * Test that the Listings pages load via HTTP requests.
//      *
//      * @dataProvider ListingPages
//      *
//      * @return void
//      **/
//     public function testListingPagesLoadViaHttp($pageName, $value)
//     {
//         $this->get($pageName)->assertStatus(200);
//     }

//     public function listingPages(): array
//     {
//         return [
//             'Machines listing'                 => ['/machines', 'Equipment Inventory - Active'],
//             'Test equipment listing'           => ['/testequipment', 'Equipment Inventory - Test Equipment'],
//             'Test equipment cal dates listing' => ['/testequipment/caldates', 'Recent Test Equipment Calibration Dates'],
//         ];
//     }
//}

<?php

namespace Tests\Feature;

use Tests\TestCase;

class ListingsTest extends TestCase
{
    /**
     * Test that the Listings pages load via HTTP requests.
     *
     * @dataProvider ListingPages
     *
     * @return void
     **/
    public function testListingPagesLoadViaHttp($pageName, $value)
    {
        $this->get($pageName)->assertStatus(200);
    }

    public function listingPages(): array
    {
        return [
            'Machines listing'                 => ['/machines', 'Equipment Inventory - Active'],
            'Test equipment listing'           => ['/testequipment', 'Equipment Inventory - Test Equipment'],
            'Test equipment cal dates listing' => ['/testequipment/caldates', 'Recent Test Equipment Calibration Dates'],
        ];
    }
}

--- 
+++ 
@@ -1,29 +1,38 @@
 <?php
 
-namespace Tests\Feature;
+use function Pest\Laravel\get;
 
-use Tests\TestCase;
+test('Lising page exists', function($url) {
+    get($url)->assertStatus(200);
+})->with([
+    'Machines listing' => '/machines',
+    'Test equipment listing' => '/testequipment',
+    'Test equipment calibration dates liisting' => '/testequipment/caldates',
+]);
+// namespace Tests\Feature;
 
-class ListingsTest extends TestCase
-{
-    /**
-     * Test that the Listings pages load via HTTP requests.
-     *
-     * @dataProvider ListingPages
-     *
-     * @return void
-     **/
-    public function testListingPagesLoadViaHttp($pageName, $value)
-    {
-        $this->get($pageName)->assertStatus(200);
-    }
+// use Tests\TestCase;
 
-    public function listingPages(): array
-    {
-        return [
-            'Machines listing'                 => ['/machines', 'Equipment Inventory - Active'],
-            'Test equipment listing'           => ['/testequipment', 'Equipment Inventory - Test Equipment'],
-            'Test equipment cal dates listing' => ['/testequipment/caldates', 'Recent Test Equipment Calibration Dates'],
-        ];
-    }
-}
+// class ListingsTest extends TestCase
+// {
+//     /**
+//      * Test that the Listings pages load via HTTP requests.
+//      *
+//      * @dataProvider ListingPages
+//      *
+//      * @return void
+//      **/
+//     public function testListingPagesLoadViaHttp($pageName, $value)
+//     {
+//         $this->get($pageName)->assertStatus(200);
+//     }
+
+//     public function listingPages(): array
+//     {
+//         return [
+//             'Machines listing'                 => ['/machines', 'Equipment Inventory - Active'],
+//             'Test equipment listing'           => ['/testequipment', 'Equipment Inventory - Test Equipment'],
+//             'Test equipment cal dates listing' => ['/testequipment/caldates', 'Recent Test Equipment Calibration Dates'],
+//         ];
+//     }
+//}
Rewrite as a Pest PHP test
