- renamed DKIM class method to camelCase and updated unit test - re-added acceptance suite yml file to the repo and updated gitignore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,5 +4,4 @@ composer.phar
|
||||
vendor
|
||||
tests/_output/*
|
||||
node_modules
|
||||
tests/*.suite.yml
|
||||
.env
|
||||
|
@@ -2,7 +2,7 @@
|
||||
namespace MailPoet\Util;
|
||||
class DKIM {
|
||||
|
||||
public static function generate_keys() {
|
||||
public static function generateKeys() {
|
||||
try {
|
||||
$certificate = openssl_pkey_new(array('private_bits' => 1024));
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<?php //[STAMP] 9cd003010af5e6228d99a8c6909f010e
|
||||
<?php //[STAMP] 1f68379452ca79a97b0ccbe71a086169
|
||||
namespace _generated;
|
||||
|
||||
// This class was automatically generated by build task
|
||||
@@ -8,7 +8,7 @@ namespace _generated;
|
||||
use Codeception\Module\WebDriver;
|
||||
use Helper\Acceptance;
|
||||
|
||||
trait acceptancetesterActions
|
||||
trait AcceptanceTesterActions
|
||||
{
|
||||
/**
|
||||
* @return \Codeception\Scenario
|
||||
|
13
tests/acceptance.suite.yml
Normal file
13
tests/acceptance.suite.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Codeception Test Suite Configuration
|
||||
#
|
||||
# Suite for acceptance tests.
|
||||
# Perform tests in browser using the WebDriver or PhpBrowser.
|
||||
# If you need both WebDriver and PHPBrowser tests - create a separate suite.
|
||||
|
||||
class_name: AcceptanceTester
|
||||
modules:
|
||||
enabled:
|
||||
- WebDriver:
|
||||
url: 'http://localhost'
|
||||
browser: phantomjs
|
||||
- \Helper\Acceptance
|
@@ -4,7 +4,7 @@ use \UnitTester;
|
||||
class DKIMCest {
|
||||
|
||||
public function it_can_generate_keys() {
|
||||
$keys = \MailPoet\Util\DKIM::generate_keys();
|
||||
$keys = \MailPoet\Util\DKIM::generateKeys();
|
||||
$public_header = '-----BEGIN PUBLIC KEY-----';
|
||||
$private_header = '-----BEGIN RSA PRIVATE KEY-----';
|
||||
|
||||
|
Reference in New Issue
Block a user