platform/api/laravel/Foundation/Testing/Concerns/InteractsWithViews.yaml
2024-09-02 10:44:11 -07:00

90 lines
1.9 KiB
YAML

name: InteractsWithViews
class_comment: null
dependencies:
- name: ViewFacade
type: class
source: Illuminate\Support\Facades\View
- name: MessageBag
type: class
source: Illuminate\Support\MessageBag
- name: ViewErrorBag
type: class
source: Illuminate\Support\ViewErrorBag
- name: TestComponent
type: class
source: Illuminate\Testing\TestComponent
- name: TestView
type: class
source: Illuminate\Testing\TestView
- name: View
type: class
source: Illuminate\View\View
properties: []
methods:
- name: view
visibility: protected
parameters:
- name: view
- name: data
default: '[]'
comment: '# * Create a new TestView from the given view.
# *
# * @param string $view
# * @param \Illuminate\Contracts\Support\Arrayable|array $data
# * @return \Illuminate\Testing\TestView'
- name: blade
visibility: protected
parameters:
- name: template
- name: data
default: '[]'
comment: '# * Render the contents of the given Blade template string.
# *
# * @param string $template
# * @param \Illuminate\Contracts\Support\Arrayable|array $data
# * @return \Illuminate\Testing\TestView'
- name: component
visibility: protected
parameters:
- name: componentClass
- name: data
default: '[]'
comment: '# * Render the given view component.
# *
# * @param string $componentClass
# * @param \Illuminate\Contracts\Support\Arrayable|array $data
# * @return \Illuminate\Testing\TestComponent'
- name: withViewErrors
visibility: protected
parameters:
- name: errors
- name: key
default: '''default'''
comment: '# * Populate the shared view error bag with the given errors.
# *
# * @param array $errors
# * @param string $key
# * @return $this'
traits:
- Illuminate\Support\MessageBag
- Illuminate\Support\ViewErrorBag
- Illuminate\Testing\TestComponent
- Illuminate\Testing\TestView
- Illuminate\View\View
interfaces: []