Skip to content

Commit

Permalink
Update version to stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair2004 committed May 3, 2024
1 parent 85179d0 commit aaeb83f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/nexopos.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* This is the core version of NexoPOS. This is used to displays on the
* dashboard and to ensure a compatibility with the modules.
*/
'version' => '5.2.4-b3',
'version' => '5.2.4',

/**
* --------------------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion tests/Feature/SaveSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public function testSaveSettings()
return [
$key => collect( $value[ 'fields' ] )
->mapWithKeys( function ( $field ) {

if ( $field[ 'type' ] === 'select' && ! empty( $field[ 'options' ] ) ) {
$rawField = collect( $field[ 'options' ] )->random();
}

return [
$field[ 'name' ] => match ( $field[ 'name' ] ) {
'ns_store_language' => 'en',
Expand All @@ -57,7 +62,7 @@ public function testSaveSettings()
default => (
match ( $field[ 'type' ] ) {
'text', 'textarea' => strstr( $field[ 'name' ], 'email' ) ? $this->faker->email() : $this->faker->text( 20 ),
'select' => ! empty( $field[ 'options' ] ) ? collect( $field[ 'options' ] )->random()[ 'value' ] : '',
'select' => ! empty( $field[ 'options' ] ) ? ( $rawField ? $rawField[ 'value' ] : '' ) : '',
default => $field[ 'value' ]
}
)
Expand Down

0 comments on commit aaeb83f

Please sign in to comment.