Skip to content

Commit

Permalink
Merge pull request #2 from UseMuffin/cake-update
Browse files Browse the repository at this point in the history
Update to Cake 3.4.
  • Loading branch information
ADmad authored Apr 15, 2018
2 parents 7c51395 + 0576c9b commit 99bbecd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2

sudo: false

Expand Down Expand Up @@ -43,7 +43,7 @@ script:

- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi

- if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.8 && vendor/bin/phpstan analyse -l 5 src; fi
- if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.9 && vendor/bin/phpstan analyse -l 5 src; fi

after_success:
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"source": "https://github.com/usemuffin/orderly"
},
"require": {
"cakephp/orm": "^3.0"
"cakephp/orm": "3.4.*"
},
"require-dev": {
"cakephp/cakephp": "^3.0",
"phpunit/phpunit": "<6.0"
"cakephp/cakephp": "3.4.*",
"phpunit/phpunit": "^5.7.14|^6.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Behavior/OrderlyBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ protected function _normalizeConfig($orders)
}

$default = [
'order' => $this->_table->aliasField($this->_table->displayField()),
'callback' => null
'order' => $this->_table->aliasField($this->_table->getDisplayField()),
'callback' => null,
];

foreach ($orders as $key => $value) {
Expand Down
10 changes: 5 additions & 5 deletions tests/TestCase/Model/Behavior/OrderlyBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ public function testInitialize()

$expected = [
[
'order' => $this->Table->aliasField($this->Table->displayField()),
'order' => $this->Table->aliasField($this->Table->getDisplayField()),
'callback' => null
]
];
$this->assertEquals(
$expected,
$this->Table->behaviors()->Orderly->config()['orders']
$this->Table->behaviors()->Orderly->getConfig()['orders']
);

$this->Table->removeBehavior('Orderly');
Expand All @@ -53,7 +53,7 @@ public function testInitialize()
];
$this->assertEquals(
$expected,
$this->Table->behaviors()->Orderly->config()['orders']
$this->Table->behaviors()->Orderly->getConfig()['orders']
);

$callback = function () {
Expand All @@ -70,7 +70,7 @@ public function testInitialize()
];
$this->assertEquals(
$expected,
$this->Table->behaviors()->Orderly->config()['orders']
$this->Table->behaviors()->Orderly->getConfig()['orders']
);

$this->Table->removeBehavior('Orderly');
Expand All @@ -91,7 +91,7 @@ public function testInitialize()
];
$this->assertEquals(
$expected,
$this->Table->behaviors()->Orderly->config()['orders']
$this->Table->behaviors()->Orderly->getConfig()['orders']
);
}

Expand Down

0 comments on commit 99bbecd

Please sign in to comment.