web/wp-content/plugins/ghost-runner/src/Factories.php
/**
	 * Gets tests, optionally setting in container, from a google sheer in the right forms
	 *
	 * @param string $docId ID of Google sheet -- must be "Published To The Web" and in the right format, results will be minimally validated, follow the fucking schema.
	 * @param Container|null $container Optional. Container instance to add tests to.
	 *
	 * @return array|mixed|null|object Raw results from the sheet
	 */
Gets tests, optionally setting in container, from a google sheer in the right forms
@param string $docId ID of Google sheet -- must be "Published To The Web" and in the right format, results will be minimally validated, follow the fucking schema.
@param Container|null $container Optional. Container instance to add tests to.

@return array|mixed|null|object Raw results from the sheet
Gets tests optionally setting in container from a google sheer in the right forms @param string $docId ID of Google sheet -- must be " Published To The Web " and in the right format results will be minimally validated follow the fucking schema . @param Container|null $container Optional . Container instance to add tests to . @return array|mixed|null|object Raw results from the sheet
public static function testsFromGoogleSheet( $docId, Container $container = null )
	{
		$data = self::getDataFromGoogle( $docId, 1, md5( __CLASS__ . __METHOD__ . $docId ) );
		if ( is_null( $data ) || is_null( $container ) ) {
			return $data;
		}
		if ( is_object( $data ) && isset( $data->rows ) && ! empty( $data->rows ) ) {
			foreach ( $data->rows as $test ) {
				$container->addTest(
					new \calderawp\ghost\Test(
						self::testEntity( $test )
					)
				);
			}
		}
		return $data;
	}
public static function testsFromGoogleSheet ( $ docId , Container $ container = null ) { $ data = self :: getDataFromGoogle ( $ docId , 1 , md5 ( __CLASS__ . __METHOD__ . $ docId ) ) ; if ( is_null ( $ data ) || is_null ( $ container ) ) { return $ data ; } if ( is_object ( $ data ) && isset ( $ data -> rows ) && ! empty ( $ data -> rows ) ) { foreach ( $ data -> rows as $ test ) { $ container -> addTest ( new \ calderawp \ ghost \ Test ( self :: testEntity ( $ test ) ) ) ; } } return $ data ; }
Gets tests, optionally setting in container, from a google sheer in the right forms
 @param string $docId ID of Google sheet -- must be "Published To The Web" and in the right format, results will be minimally validated, follow the fucking schema.
Gets tests optionally setting in container from a google sheer in the right forms @param string $docId ID of Google sheet -- must be " Published To The Web " and in the right format results will be minimally validated follow the fucking schema .
/** @var \stdClass $test */