Skip to content

Commit f051ec5

Browse files
committed
Not needed
1 parent 52485e1 commit f051ec5

File tree

4 files changed

+7
-34
lines changed

4 files changed

+7
-34
lines changed

README.md

+5-22
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
1-
## Streams UI
1+
## Testing
22

3-
The user's interface, including a control panel, is an optional core component of the Streams platform. Streams UI extends the [stream domain information](https://streams.dev/docs/streams#domain-information).
3+
```bash
4+
php vendor/bin/phpunit tests/
45

5-
- [UI Introduction](https://streams.dev/docs/ui/introduction)
6-
7-
### Input Types
8-
9-
Input types separate the concerns of [data-modeling](https://streams.dev/docs/streams#domain-entities) vs. data-management and provides a refreshing new layer of flexibility.
10-
11-
- [Input Types](https://streams.dev/docs/ui/inputs)
12-
13-
### UI Components
14-
15-
Several flexible UI components are available and can be used both within and outside of a control panel. We use a factory-like `builder` pattern and utilize [Alpine JS](https://alpinejs.com/) to provide versatile and fast UI features.
16-
17-
- [Builders](https://streams.dev/docs/ui/builders)
18-
- [Components](https://streams.dev/docs/ui/components)
19-
20-
### Control Panel
21-
22-
The Streams platform provides a consistent, user-friendly, and fast control panel that puts you in control of every aspect. Zero configuration is necessary by default.
23-
24-
- [Control Panel](https://streams.dev/docs/ui/cp)
6+
XDEBUG_MODE=coverage php vendor/bin/phpunit tests/ --coverage-html=./coverage
7+
```

phpunit.xml

+1-7
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222
<php>
2323
<ini name="display_errors" value="true"/>
2424
<env name="APP_ENV" value="testing"/>
25-
<env name="APP_KEY" value="base64:aiGINJ0oFnqrMGUwJYWJuhe6meZoW+GqppwDJD4YZeM="/>
26-
<env name="DB_CONNECTION" value="mysql"/>
27-
<env name="DB_HOST" value="127.0.0.1"/>
28-
<env name="DB_DATABASE" value="testing"/>
29-
<env name="DB_USERNAME" value="root"/>
30-
<env name="DB_PASSWORD" value="root"/>
31-
<env name="STREAMS_CP_ENABLED" value="true"/>
25+
<env name="STREAMS_ADMIN_ENABLED" value="true"/>
3226
</php>
3327

3428
</phpunit>

resources/config/ui.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
'admin' => [
66
'prefix' => 'admin',
7-
'enabled' => env('ADMIN_ENABLED', true),
7+
'enabled' => env('STREAMS_ADMIN_ENABLED', true),
88
'default' => \Streams\Ui\Components\Admin\AdminDashboard::class,
99
'navigation' => [
1010
[

src/UiServiceProvider.php

-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ protected function registerConfig()
5151
$this->publishes([
5252
__DIR__ . '/../resources/config/ui.php' => config_path('streams/ui.php'),
5353
], 'config');
54-
55-
file_exists($config = base_path('config/streams/ui.php'))
56-
? $this->mergeConfigFrom($config, 'streams.ui')
57-
: null;
5854
}
5955

6056
protected function registerAdmin()

0 commit comments

Comments
 (0)