File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -389,6 +389,9 @@ set_tests_properties(junithandler PROPERTIES DEPENDS /CDash/XmlHandler/UpdateHan
389389add_php_test (configurewarnings )
390390set_tests_properties (configurewarnings PROPERTIES DEPENDS /CDash/XmlHandler/UpdateHandler)
391391
392+ add_php_test (lotsofsubprojects )
393+ set_tests_properties (lotsofsubprojects PROPERTIES DEPENDS /CDash/XmlHandler/UpdateHandler)
394+
392395add_feature_test (/Feature/AutoRemoveBuildsCommand )
393396
394397# Must run serially since it can delete builds other than the ones it creates.
@@ -430,6 +433,7 @@ set_property(TEST install_2 APPEND PROPERTY DEPENDS
430433 issuecreation
431434 junithandler
432435 configurewarnings
436+ lotsofsubprojects
433437)
434438
435439
@@ -688,11 +692,8 @@ set_tests_properties(starttimefromupload PROPERTIES DEPENDS starttimefromnotes)
688692add_php_test (querytestsfilterlabels )
689693set_tests_properties (querytestsfilterlabels PROPERTIES DEPENDS starttimefromupload)
690694
691- add_php_test (lotsofsubprojects )
692- set_tests_properties (lotsofsubprojects PROPERTIES DEPENDS querytestsfilterlabels)
693-
694695add_php_test (querytestsrevisionfilter )
695- set_tests_properties (querytestsrevisionfilter PROPERTIES DEPENDS lotsofsubprojects )
696+ set_tests_properties (querytestsrevisionfilter PROPERTIES DEPENDS querytestsfilterlabels )
696697
697698add_php_test (redundanttests )
698699set_tests_properties (redundanttests PROPERTIES DEPENDS querytestsrevisionfilter)
Original file line number Diff line number Diff line change 44
55use CDash \Model \Project ;
66use Illuminate \Support \Facades \DB ;
7+ use Tests \Traits \CreatesProjects ;
78
89class LotsOfSubProjectsTestCase extends KWWebTestCase
910{
11+ use CreatesProjects;
12+
1013 private $ project ;
1114
1215 public function __construct ()
1316 {
1417 parent ::__construct ();
1518 $ this ->project = null ;
16- $ this ->deleteLog ($ this ->logfilename );
1719 }
1820
1921 public function __destruct ()
@@ -34,11 +36,8 @@ public function __destruct()
3436 public function testLotsOfSubProjects (): void
3537 {
3638 // Create test project.
37- $ this ->login ();
3839 $ this ->project = new Project ();
39- $ this ->project ->Id = $ this ->createProject ([
40- 'Name ' => 'LotsOfSubProjects ' ,
41- ]);
40+ $ this ->project ->Id = $ this ->makePublicProject ('LotsOfSubProjects ' )->id ;
4241 $ this ->project ->Fill ();
4342
4443 // Generate our testing data.
@@ -59,9 +58,6 @@ public function testLotsOfSubProjects(): void
5958 $ this ->fail ("Failed to submit $ test_filename " );
6059 }
6160
62- // No errors in the log.
63- $ this ->assertTrue ($ this ->checkLog ($ this ->logfilename ) !== false );
64-
6561 // Verify 101 builds (1 parent + 100 children).
6662 $ results = DB ::select ('SELECT id FROM build WHERE projectid = ? ' , [(int ) $ this ->project ->Id ]);
6763 $ this ->assertEqual (101 , count ($ results ));
You can’t perform that action at this time.
0 commit comments