瀏覽代碼

Removed: field render test

James Doyle 3 年之前
父節點
當前提交
46680144a7
共有 2 個文件被更改,包括 0 次插入35 次删除
  1. 0 1
      phpunit.xml
  2. 0 34
      tests/Unit/FieldRenderTest.php

+ 0 - 1
phpunit.xml

@@ -44,7 +44,6 @@
         </testsuite>
         <testsuite name="Unit Tests 4">
             <file>tests/Unit/ValidationRuleParsingTest.php</file>
-            <file>tests/Unit/FieldRenderTest.php</file>
         </testsuite>
     </testsuites>
 </phpunit>

+ 0 - 34
tests/Unit/FieldRenderTest.php

@@ -1,34 +0,0 @@
-<?php
-
-namespace Knuckles\Scribe\Tests\Unit;
-
-use Knuckles\Scribe\Tests\BaseLaravelTest;
-use Illuminate\Foundation\Testing\Concerns\InteractsWithViews;
-
-class FieldRenderTest extends BaseLaravelTest
-{
-    use InteractsWithViews;
-
-    /** @test */
-    public function can_render_a_field_with_an_example_value()
-    {
-        $data = [
-            'name' => 'Parameter Name',
-            'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.',
-            'example' => 'My Custom Value',
-            'endpointId' => 'example-requests-GET',
-        ];
-
-        $view = $this->view(
-            'scribe::components.field-details', array_merge($data, [
-                'type' => 'string',
-                'required' => true,
-                'component' => 'url',
-            ])
-        );
-
-        foreach ($data as $text) {
-            $view->assertSee($text);
-        }
-    }
-}