File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,15 @@ public function movie_is_found_for_exact_name_match(string $keyword)
101101 $ this ->assertTrue ($ isMovieAvailable );
102102 }
103103
104+ #[Test]
105+ #[DataProvider('provide_studio_names ' )]
106+ #[TestDox('Studio with name $keyword exists in collection. ' )]
107+ public function studio_is_found_for_exact_name_match (string $ keyword )
108+ {
109+ $ isStudioFound = $ this ->fileHandler ->open (filename: 'movie.csv ' )->searchInCsvFile (keyword: $ keyword , offset: 2 );
110+ $ this ->assertTrue ($ isStudioFound );
111+ }
112+
104113 #[Test]
105114 public function should_throw_exception_if_not_valid_csv ()
106115 {
@@ -109,6 +118,13 @@ public function should_throw_exception_if_not_valid_csv()
109118 $ this ->fileHandler ->open (filename: 'invalid.csv ' )->searchInCsvFile (keyword: 'hello ' );
110119 }
111120
121+ public static function provide_studio_names (): iterable
122+ {
123+ yield ["Fox " ];
124+ yield ["Universal " ];
125+ yield ["Warner Bros. " ];
126+ }
127+
112128
113129 public static function provide_movie_names (): iterable
114130 {
You can’t perform that action at this time.
0 commit comments