                               :dir "/a/path/"
                               :variables '(var1 'bar var2)))))
     (mocker-let
-     ((spacemacs-buffer/warning
+     ((configuration-layer//warning
        (msg &rest args)
        ((:record-cls 'mocker-stub-record :output nil :occur 1))))
      (setq var1 'foo)

    (defun layer2/init-pkg3 nil)
    (mocker-let
     ((file-exists-p (f) ((:output t :occur 1)))
      (spacemacs-buffer/warning (m) ((:output nil)))
      (load (f) ((:output nil :occur 1))))
     (let (configuration-layer--packages)
       (configuration-layer/get-packages layers)

    (mocker-let
     ((file-exists-p (f) ((:output t :occur 2)))
      (load (f) ((:output nil :occur 2)))
      (configuration-layer//warning (msg &rest args) ((:output nil :occur 1))))
     (let (configuration-layer--packages)
       (configuration-layer/get-packages layers)
       (should (equal (list (cfgl-package "pkg1"
