Skip to content

[v4] BadMethodCallException: Call to undefined method Illuminate\Database\Query\Builder::getExistenceCompareKey() #172

@arcanedev-maroc

Description

@arcanedev-maroc

Description

The tests failing on Laravel 5.4 with this message:

PHPUnit 4.8.34 by Sebastian Bergmann and contributors.

.......................................................E

Time: 3.15 seconds, Memory: 10.00MB

There was 1 error:

1) NodeTest::testDescendantsRelationQuery
BadMethodCallException: Call to undefined method Illuminate\Database\Query\Builder::getExistenceCompareKey()

And it fails at this line: https://github.com/lazychaser/laravel-nestedset/blob/v4/tests/NodeTest.php#L753

Steps to reproduce

  • clone the project
  • run composer install
  • run vendor\bin\phpunit

Installed dependencies

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 31 installs, 0 updates, 0 removals
  - Installing paragonie/random_compat (v2.0.4) Loading from cache
  - Installing illuminate/contracts (v5.4.0) Loading from cache
  - Installing doctrine/inflector (v1.1.0) Loading from cache
  - Installing illuminate/support (v5.4.0) Loading from cache
  - Installing illuminate/container (v5.4.0) Downloading: 100%
  - Installing illuminate/events (v5.4.0) Downloading: 100%
  - Installing symfony/polyfill-mbstring (v1.3.0) Loading from cache
  - Installing symfony/translation (v3.2.2) Loading from cache
  - Installing nesbot/carbon (1.22.1) Loading from cache
  - Installing illuminate/database (v5.4.0) Downloading: 100%
  - Installing symfony/yaml (v3.2.2) Loading from cache
  - Installing sebastian/version (1.0.6) Loading from cache
  - Installing sebastian/global-state (1.1.1) Loading from cache
  - Installing sebastian/recursion-context (1.0.2) Loading from cache
  - Installing sebastian/exporter (1.2.2) Loading from cache
  - Installing sebastian/environment (1.3.8) Loading from cache
  - Installing sebastian/diff (1.4.1) Loading from cache
  - Installing sebastian/comparator (1.2.4) Loading from cache
  - Installing doctrine/instantiator (1.0.5) Loading from cache
  - Installing phpunit/php-text-template (1.2.1) Loading from cache
  - Installing phpunit/phpunit-mock-objects (2.3.8) Loading from cache
  - Installing phpunit/php-timer (1.0.8) Loading from cache
  - Installing phpunit/php-file-iterator (1.4.2) Loading from cache
  - Installing phpunit/php-token-stream (1.4.9) Loading from cache
  - Installing phpunit/php-code-coverage (2.2.4) Loading from cache
  - Installing webmozart/assert (1.2.0) Loading from cache
  - Installing phpdocumentor/reflection-common (1.0) Loading from cache
  - Installing phpdocumentor/type-resolver (0.2.1) Loading from cache
  - Installing phpdocumentor/reflection-docblock (3.1.1) Loading from cache
  - Installing phpspec/prophecy (v1.6.2) Loading from cache
  - Installing phpunit/phpunit (4.8.34) Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
illuminate/support suggests installing illuminate/filesystem (Required to use the composer class (5.2.*).)
illuminate/support suggests installing symfony/process (Required to use the composer class (~3.2).)
illuminate/support suggests installing symfony/var-dumper (Required to use the dd function (~3.2).)
symfony/translation suggests installing psr/log (To use logging capability in translator)
symfony/translation suggests installing symfony/config ()
illuminate/database suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (~2.5).)
illuminate/database suggests installing fzaninotto/faker (Required to use the eloquent factory builder (~1.4).)
illuminate/database suggests installing illuminate/console (Required to use the database commands (5.4.*).)
illuminate/database suggests installing illuminate/filesystem (Required to use the migrations (5.4.*).)
illuminate/database suggests installing illuminate/pagination (Required to paginate the result set (5.4.*).)
symfony/yaml suggests installing symfony/console (For validating YAML files using the lint command)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating optimized autoload files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions