+ Add unit test case for solution->pickAppFromSchema.

This commit is contained in:
caoyanyi
2023-12-27 18:21:33 +08:00
parent 703fdd4166
commit 17fdb9b378
3 changed files with 49 additions and 7 deletions
+15
View File
@@ -12,6 +12,7 @@ declare(strict_types=1);
*/
class solutionTest
{
private $objectModel;
public function __construct()
{
su('admin');
@@ -118,4 +119,18 @@ class solutionTest
foreach($postData as $key => $value) $app->post->set($key, '');
return $solution;
}
/**
* Test pickAppFromSchema method.
*
* @param string $category
* @param string $application
* @access public
* @return object|null
*/
public function pickAppFromSchemaTest(string $category, string $application): object|null
{
list($cloudSolution, $components) = $this->initCreateData();
return $this->objectModel->pickAppFromSchema($components, $category, $application, $cloudSolution);
}
}