You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am part of a team developing a Yii 2 web app, although I cannot disclose the nature of the web app. We use Auth0 for the log in function.
My current task is to create unit tests for a specific class in the web app. I am using Codeception for this. I created a simple test and tried to run it just to see if everything will go smoothly. My test:
<?php
class OSSTest extends \Codeception\Test\Unit
{
/**
* @var \UnitTester
*/
protected $tester;
protected function _before()
{
}
protected function _after()
{
}
// tests
public function testSomeFeature()
{
$this->assertTrue(true);
}
}
When I run the test, i get the following exception:
@jmbantay - It sounds like you're trying to initialize the Auth0 class without a domain key in your configuration. Can you share the code that's doing that initialization? It could be that you have it set to an ENV value but don't have an .env file for your testing suite.
Here's an example of the correct way to initialize that:
Description
I am part of a team developing a Yii 2 web app, although I cannot disclose the nature of the web app. We use Auth0 for the log in function.
My current task is to create unit tests for a specific class in the web app. I am using Codeception for this. I created a simple test and tried to run it just to see if everything will go smoothly. My test:
When I run the test, i get the following exception:
What could be the problem? I'm new to Auth0, so any help would be greatly appreciated.
Environment
The text was updated successfully, but these errors were encountered: