Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
data_pipelines
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
data_pipelines
Commits
5cbe79a4
Verified
Commit
5cbe79a4
authored
1 year ago
by
Jibran Ijaz
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3383916
by jibran: PHPCS fixes.
Signed-off-by:
Jibran Ijaz
<
jibran.ijaz@gmail.com
>
parent
4e91afb6
No related branches found
No related tags found
No related merge requests found
Pipeline
#65053
passed with warnings
1 year ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Kernel/DatasetPipelineBaseTest.php
+11
-2
11 additions, 2 deletions
tests/src/Kernel/DatasetPipelineBaseTest.php
with
11 additions
and
2 deletions
tests/src/Kernel/DatasetPipelineBaseTest.php
+
11
−
2
View file @
5cbe79a4
...
...
@@ -146,7 +146,7 @@ class DatasetPipelineBaseTest extends DatasetKernelTestBase {
}
/**
*
A test to ensure that
the typed data created during validation is cached according to the data pipeline.
*
Ensure
the typed data created during validation is cached according to the data pipeline.
*/
public
function
testTypedDataCaching
():
void
{
$dataset_data
=
new
DatasetData
([
...
...
@@ -157,7 +157,16 @@ class DatasetPipelineBaseTest extends DatasetKernelTestBase {
$typed_data_manager
=
$this
->
prophesize
(
TypedDataManager
::
class
);
$typed_data_manager
->
create
(
Argument
::
type
(
MapDataDefinition
::
class
),
$dataset_data
,
'test_pipeline_1'
)
->
shouldBeCalled
()
->
willReturn
(
$string_data
->
reveal
());
$this
->
container
->
set
(
'typed_data_manager'
,
$typed_data_manager
->
reveal
());
$data_pipeline
=
DatasetPipelineBase
::
create
(
$this
->
container
,
[],
'test_pipeline_1'
,
[
'validations'
=>
[
'field'
=>
[
'foo'
=>
[
new
NotBlank
()]],
'record'
=>
[]]]);
$data_pipeline
=
DatasetPipelineBase
::
create
(
$this
->
container
,
[],
'test_pipeline_1'
,
[
'validations'
=>
[
'field'
=>
[
'foo'
=>
[
new
NotBlank
(),
],
],
'record'
=>
[],
],
]);
$data_pipeline
->
validate
(
$dataset_data
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment