File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ protected function setUp(): void
4242 protected function tearDown (): void
4343 {
4444 try {
45- $ this ->curationSets ['test-curation-set-items ' ]->delete ();
45+ if ($ this ->curationSets !== null ) {
46+ $ this ->curationSets ['test-curation-set-items ' ]->delete ();
47+ }
4648 } catch (Exception $ e ) {
4749 // Ignore cleanup errors
4850 }
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ protected function setUp(): void
4343 protected function tearDown (): void
4444 {
4545 try {
46- $ this ->curationSets ['test-curation-set ' ]->delete ();
46+ if ($ this ->curationSets !== null ) {
47+ $ this ->curationSets ['test-curation-set ' ]->delete ();
48+ }
4749 } catch (Exception $ e ) {
4850 // Ignore cleanup errors
4951 }
You can’t perform that action at this time.
0 commit comments