31 lines
594 B
PHP
31 lines
594 B
PHP
<?php
|
|
use \UnitTester;
|
|
use \MailPoet\Config\Env;
|
|
|
|
class EnvCest {
|
|
public function _before() {
|
|
Env::init();
|
|
}
|
|
|
|
public function itCanReturnTheDbPrefix() {
|
|
global $wpdb;
|
|
$db_prefix = $wpdb->prefix;
|
|
expect(Env::$db_prefix)->equals($db_prefix);
|
|
}
|
|
|
|
public function itCanReturnTheDbHost() {
|
|
expect(Env::$db_host)->equals(DB_HOST);
|
|
}
|
|
|
|
public function itCanReturnTheDbUser() {
|
|
expect(Env::$db_username)->equals(DB_USER);
|
|
}
|
|
|
|
public function itCanReturnTheDbPassword() {
|
|
expect(Env::$db_password)->equals(DB_PASSWORD);
|
|
}
|
|
|
|
public function _after() {
|
|
}
|
|
}
|