Auth0\Tests\RulesTest::getCreateBody PHP Method

getCreateBody() protected method

protected getCreateBody ( )
    protected function getCreateBody()
    {
        $name = 'test-create-rule' . rand();
        echo "\n-- Using rule name {$name} \n";
        return ["name" => $name, "script" => "function (user, context, callback) {\n  callback(null, user, context);\n}", "enabled" => true];
    }